I want to run different build commands for my static website, depending on the stage.
The following does not work, because the ${stage} is empty, even when explicitly setting the stage via the --stage cli parameter:
Deploying...
Error: Failed running "src.hook": "npm run build-${stage}" due to the following error: Command failed: npm run build-${stage}
npm ERR! missing script: build-
Description
I want to run different build commands for my static website, depending on the stage. The following does not work, because the
${stage}
is empty, even when explicitly setting the stage via the--stage
cli parameter:Result: