ember-cli-envy

dotenv for your ember-cli commands

Usage no npm install needed!

<script type="module">
  import emberCliEnvy from 'https://cdn.skypack.dev/ember-cli-envy';
</script>

README

Envy

Envy is a simple Ember CLI addon that loads environment variables with dotenv so that you can reference them inside of ember commands.

Installation

ember install ember-cli-envy

Configuration (optional)

You can optionally configure dotenv by place a configuration file at config/envy.js that exports an options hash. The path is passed directly to dotenv.config after normalizing the path. For example

module.exports = {
  silent: true,
  path: '.env.' + process.env.DEPLOY_TARGET
}

Alternatives

If this addon doesn't do what you want please check out ember-cli-dotenv.