-
Notifications
You must be signed in to change notification settings - Fork 18
Use Ember CLI's ENV import #21
Comments
This should definitely be done soon as using A different solution would be to have a special initializer for the Ember CLI Addon that doesn't load the configuration from import initializer from 'simple-auth/initializer';
export default initializer; whereas with the solution as described above it would have to duplicate the code that's in the library's initializer: import setup from './setup';
import ENV from '<appName>/config/environment';`
export default {
name: 'simple-auth',
initialize: function(container, application) {
Configuration.load(container, ENV['simple-auth'] || {});
setup(container, application);
}
}; Would be great to get some input here from the Ember CLI team (ping @rwjblue, @stefanpenner). |
If you return an initializer in the
To avoid internals knowledge you could update your |
@rwjblue: thanks, wasn't aware of that! |
Use new ENV import on every module should do it.
The text was updated successfully, but these errors were encountered: