@caviar/plugin-sandbox-env
Caviar plugin to allow the sanbox to inherit extra environment variables from the current process
Install
$ npm i @caviar/plugin-sandbox-env
Usage
const EnvPlugin = require('@caviar/plugin-sandbox-env')
module.exports = {
plugins: [
// Allow sandbox to inherit `process.env.REDIS_HOST` of the parent process.
new EnvPlugin(['REDIS_HOST'])
]
}
License
MIT