-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will encourage people not to destory their window.ENV object by reassigning it a completely new value. The environemnt specific files should load after `environemnt.js` has loaded. This way the values assigned to `window.ENV` in those environment specific files can overwrite any defaults set in `environment.js` I have also cleaned up the comments somewhat and included a simple example of setting a config value.
- Loading branch information
1 parent
041a2d3
commit f55c74e
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
// Put your development configuration here. | ||
// This might be useful when using a separate API | ||
// | ||
// This is useful when using a separate API | ||
// endpoint in development than in production. | ||
window.ENV = {}; | ||
// | ||
// window.ENV.public_key = '123456' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters