process.env.SERVERLESS_STAGE in 1.0

Hello,

In v0.5 I would be able to get the current stage during runtime with process.env.SERVERLESS_STAGE. This no longer appears to work in v1.0. Is there another way to do this?

3 Likes

You could try https://github.com/silvermine/serverless-plugin-write-env-vars until that functionality is added back into the core.