We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have multiple scripts in my package.json, such as:
package.json
"build-prod": "webpack --env stage='prod'", "build-staging": "webpack --env stage='staging'"
In serverless.yml, I can use variables such as ${stage} for pretty much everything (e.g. domain, bucketName, etc), EXCEPT for the hook
serverless.yml
${stage}
domain
bucketName
hook
So this works:
inputs: src: src: ./src hook: npm run build-prod # hook to run before building dist: ./.build # output folder domain: ${stage}.mydomain.com # domain name region: ${env:REGION} bucketName: ${stage}.mydomain.com
but this doesn't
inputs: src: src: ./src hook: npm run build-${stage} # hook to run before building dist: ./.build # output folder domain: ${stage}.mydomain.com # domain name region: ${env:REGION} bucketName: ${stage}.mydomain.com
It would be great if that was possible
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have multiple scripts in my
package.json
, such as:In
serverless.yml
, I can use variables such as${stage}
for pretty much everything (e.g.domain
,bucketName
, etc), EXCEPT for thehook
So this works:
but this doesn't
It would be great if that was possible
The text was updated successfully, but these errors were encountered: