We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.ember-cli.js
process.env doesnt have any of our dotenv vars in .ember-cli.js that we have in the rest of the ember app.
process.env
.ember-cli.js is executed before our config/dotenv.js.
config/dotenv.js
We were able to work around it by doing this. But it would be nice to use ember-cli-dotenv like we do for all other env vars :) :
ember-cli-dotenv
// .ember-cli.js const dotEnv = require('dotenv'); const path = require('path'); const fs = require('fs'); const configDotEnv = require('./config/dotenv'); const { path: configPath } = configDotEnv( process.env.NODE_ENV || 'development' ); const absoluteConfigPath = path.join(__dirname, configPath); if (fs.existsSync(absoluteConfigPath)) { dotEnv.config({ path: absoluteConfigPath }); } setEdition('octane'); let httpOrHttps = process.env.USE_SSL ? 'https' : 'http'; let port = process.env.USE_SSL ? 443 : 80; module.exports = { disableAnalytics: true, port: 4200, liveReload: true, liveReloadPort: 1337, host: '0.0.0.0', ... };
The text was updated successfully, but these errors were encountered:
@emattias I fear this is impossible to overcome by design as addons are not loaded at the time .ember-cli.js runs
Sorry, something went wrong.
No branches or pull requests
process.env
doesnt have any of our dotenv vars in.ember-cli.js
that we have in the rest of the ember app..ember-cli.js
is executed before ourconfig/dotenv.js
.We were able to work around it by doing this. But it would be nice to use
ember-cli-dotenv
like we do for all other env vars :) :The text was updated successfully, but these errors were encountered: