Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Commit

Permalink
Add environment variable defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
gshigeto committed Aug 31, 2017
1 parent 061c6f0 commit 9016375
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const ENV = {
production: true
};
7 changes: 7 additions & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`.
// When you run a build command using a flag, (e.g. --prod) then `environment.prod.ts` will be used instead.

export const ENV = {
production: false
};
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5"
"target": "es5",
"baseUrl": "./src",
"paths": {
"@app/env": [
"environments/environment"
]
}
},
"include": [
"src/**/*.ts"
Expand Down

0 comments on commit 9016375

Please sign in to comment.