arabold / serverless-export-env

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

Fix error when serverless.yml doesn't contain a custom section #22

Closed michael-wolfenden closed 4 years ago

michael-wolfenden commented 4 years ago

When serverless.yml didn't contain a custom section, the following error was being being thrown:

Cannot read property 'export-env' of undefined

arabold commented 4 years ago

Thanks for the fix!

theburningmonk commented 4 years ago

@arabold any chance you can publish this change?

arabold commented 4 years ago

Oops. Sorry! :) Pushed v1.4.0