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