arabold / serverless-export-env

Serverless plugin to export environment variables into a .env file
MIT License
102 stars 34 forks source link

Added the option to change the filename and path in the serverless file. #10

Closed philiiiiiipp closed 4 years ago

philiiiiiipp commented 6 years ago

If you are open to this I will also update the Readme file to reflect the changes. You can now change the path where the file is saved as well as the filename within the serverless.yml

export-env:
    pathFromRoot: 'dist/app'
    filename: aws.env

It will default to the parameters which were used previously which is a .env file within the root directory.

philiiiiiipp commented 6 years ago

Sorry for the changed formatting, my prettier.js went to town. I can change this back if it bothers you.

hardchor commented 5 years ago

@arabold mind merging this? Noticed that your plugin overrides any changes to .dotenv, so this might be a way to work around that.

coyoteecd commented 4 years ago

@arabold This PR is sitting here for 1 year. If the plugin is abandoned, please make a note on the doc page and/or hand it over to somebody that can at least merge PRs and publish new versions. I for one found it useful - both the plugin and the PR - and it's a pity to abandon it.

serverlesspolska commented 3 years ago

The docs message is OK but is is not totally clear. I think it should be mentioned that this config must be under the custom section and not on root.