Using express
, aws-serverless-express
and claudia
.
npm i
npm run build
npm i -g claudia
claudia create --region eu-west-1 --handler lambda.handler --deploy-proxy-api
It'll work fine with Next 4.2 if you go around the hardcoded babel-runtime
require.
cd node_modules/next
npm i babel-runtime