Skip to content

kimcoder/serverless-nextjs

Repository files navigation

nextjs-serverless

next.js with aws serverless

  • using aws lambda, s3, cloudfront
  • typescript
  • next.js ( react.js )

development

npm run dev
# or
yarn dev

build & start server in local

#
# source build 
#
npm run build
# or
yarn build

#
# start local server
#
npm run start
# or
yarn start

deploy

First, You should configure about aws credential.

  • AWS_ACCESS_KEY
  • AWS_SECRET_ACESS_KEY
npm run deploy
# or
yarn deploy

Reference

https://www.serverless.com/blog/serverless-nextjs
https://github.com/danielcondemarin/serverless-next.js#motivation