arabold / serverless-export-env

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

API_ENDPOINT and IS_OFFLINE not unset on deploy #14

Closed cyberwombat closed 5 years ago

cyberwombat commented 5 years ago

It think it's great that these vars are set but when I deploy live the plugin should run again and not have these set. If I run sls offline then deploy it pushes my env file with these vars so its not super useful at that point.

herebebogans commented 5 years ago

Exclude your .env file from the deployment with serverless.yml package excludes.

cyberwombat commented 5 years ago

Ya its what I ended up doing. Thanks.