iopipe / serverless-plugin-iopipe

Automatically wrap your serverless framework functions with IOpipe
https://www.iopipe.com
Apache License 2.0
40 stars 8 forks source link

Make `iopipeToken` optional if environment variable set #42

Closed kolanos closed 6 years ago

kolanos commented 7 years ago

If IOPIPE_TOKEN is set as an environment variable in the serverless.yml, then the iopipeToken custom var should be optional.

coreylight commented 7 years ago

I don't believe serverless plugins have access to env vars (for good reason) so we unfortunately cannot do this. We could, however add a || statement inside of the js code to fallback (again) to the env var.