@erin-living/merge-env-plugin
v0.0.1
Published
Plugin to merge multiple environment Yaml files for serverless configuration.
Readme
Plugin to merge multiple environment Yaml files for serverless configuration.
Usage
# env.yml
environment:
foo: bar
a: a_yml# ../../env.yaml
environment:
foo: baz
b: b_yml
values:
val: trueuseDotenv: true
custom:
envKeys: # environment key in Yaml
- environment
envVars:
- ${file(../../env.yml)}
- ${file(./env.yml)}
plugins:
- serverless-dotenv-plugin
- "@erin-living/merge-env-plugin"The result of serverless will be
useDotenv: true
provider:
environment:
foo: baz
a: a_yml
b: b_yml
custom:
envKeys:
- environment
envVars:
- environment:
foo: bar
a: a_yml
- environment:
foo: baz
b: b_yml
values:
val: trueTODO
- [ ] Parse environments inside the plugin instead of using
filefrom serverless
