cube-dotenv
v1.0.0
Published
Overrides your main .env with .env.local
Downloads
11
Maintainers
Readme
cube-dotenv
A simple module on top of dotenv to let you override your main .env
with a .env.local
.
For more detailed env parsing rules, please refer to the documentation of dotenv.
This extension also use dotenv-expand for variable expansion.
Installation
yarn add cube-dotenv
Usage
As early as possible in your application, require and configure cube-dotenv:
import dotenv from 'cube-dotenv'
dotenv.config()
// You may want to override the default path
dotenv.config({ path: '.env.demo' })