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
The template currently sets the API domain manually in config.js. Can this be done automatically with output variables?
Here's what I've tried so far:
In API's serverlesss.yaml:
app: myapp org: foobar component: express name: api inputs: src: ./
In the site's serverless.yaml:
app: myapp org: foobar component: website name: app inputs: src: src: ./ hook: npm run build dist: build env: REACT_APP_API_ROOT: ${output:api.apiGatewayUrl}
But running serverless deploy in the app folder gives this error:
serverless deploy
app
Serverless › Failed running "src.hook": "npm run build" due to the following error: Command failed: npm run build env: node: No such file or directory
I'm guessing this error is because it can't resolve the output:api.apiGatewayUrl variable. Any ideas?
output:api.apiGatewayUrl
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The template currently sets the API domain manually in config.js. Can this be done automatically with output variables?
Here's what I've tried so far:
In API's serverlesss.yaml:
In the site's serverless.yaml:
But running
serverless deploy
in theapp
folder gives this error:I'm guessing this error is because it can't resolve the
output:api.apiGatewayUrl
variable. Any ideas?The text was updated successfully, but these errors were encountered: