yarn global add serverless
run local http server
npm run dev
with inspector:
npm run inspect
, open chrome://inspect
or, emulate production env
sls offline start
npm run offline
## Production
sls deploy
with region:
sls deploy --region=eu-west-2
### API Gateway + Custom Domain
- run deploy as above
- go to amazon api gateway, add base path mapping
npm run build
npm run start