Tracked
- NPM Downloads Last Month
- 520
- Issues
- 0
- Stars
- 0
- Forks
- 0
- Watchers
- 0
This plugin will replace environment variables with static strings before deployment. It’s for Lambda@Edge.
serverless.yml
functions:
foobar:
handler: foobar.perform
embedded:
files:
- foobar.js
- foobar-lib.js
variables:
FooBar: somethingA
BarBaz: somethingB
For example
const foobar = process.env.FooBar
const barbaz = `${process.env.BarBaz} <= barbaz`
replaces
const foobar = 'somethingA'
const barbaz = `somethingB <= barbaz`