Closed b-sw closed 2 years ago
I missed adding npm run build
to my deploy script. As is seen - handler is specified in dist/ path which is only being created after building npm app. After adjusting deploy script:
...
- name: Install NPM dependencies
run: npm install
- name: Build dist
run: npm run build
- name: Deploy Lambda functions
...
all is good.
Hey all.
Whenever I manually deploy by calling for example:
serverless deploy --stage prod
deploy passes and I can then call deployed API endpoints.If I use the script the deploy also passes but when I try to query my newly aws-deployed API I receive Internal Server Error and this is seen in the logs:
Question: should serverless be at all required at runtime? My understanding is that it's only used for deploy. What's the error about then?
This is my serverless.yaml:
And this is my gh action script: