Skip to content

Loads environment variables from .env for egg projects.

License

Notifications You must be signed in to change notification settings

yesmeck/egg-dotenv

Repository files navigation

egg-dotenv

Loads environment variables from .env

Install

$ npm i egg-dotenv --save

Usage

// {app_root}/config/plugin.js
exports.dotenv = {
  enable: true,
  package: 'egg-dotenv',
};

Configuration

// {app_root}/config/config.default.js
exports.dotenv = {
};

Refer to dotenv for more detail.

Questions & Suggestions

Please open an issue here.

License

MIT

About

Loads environment variables from .env for egg projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published