Nuxt-Vue-Express on AWS-Lambda
SSR Frontend on Serverless Sample: https://aws.folkmann.it/
Setup AWS and serverless
- Head to the AWS Certificate Manager, and create and verify the domain
- Go to "API Gateway/Custom Domain Names", and add the domainname you just created a certificate for
- Go to your DNS-registra and create a CNAME that points to the XXXXXXXXXXXX.execute-api.[region].amazonaws.com domain you were given in 2.
- Update the
secrets.json
- Wait 40 minutes
- Deploy
Build and Deploy Setup
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and upload to AWS-Lambda (update config in serverless.yml first!)
$ npm run deploy
For detailed explanation on how things work, checkout Nuxt.js docs.