Replies: 1 comment
-
Soo it seems this.serverless.variables.options.stage already has the logic embedded, but I would really appreciate some confirmation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I have created a plugin and need to read the equivalent of
sls:stage
at runtime.This plugin is installed in a mock serverless.yml like
And then deployed like:
npx sls deploy --stage xxx
The question is: how can I resolve or mimic the sls:stage variable inside the onPackage method? I don't want to repeat the resolution logic that sls already does.
Beta Was this translation helpful? Give feedback.
All reactions