I added some configurations to myapp/config/environment
:
if (environment === \'development\') {
ENV.APP.AuthURL = \'http://localhost:5000/\';
}
>
While @rog's answer is correct and will work for all cases where you are trying to access the config from your application there are some edge cases (such as accessing config from an addon) that it will not work for.
I would recommend checking out the ember-get-config
addon: https://www.emberobserver.com/addons/ember-get-config
Once you install ember-get-config
you can import your config using the following code:
import config from 'ember-get-config';
const { AuthURL } = config;
// now you have access to AuthURL