Example of deploying Next.js app to GAE.
The application code is based on the Next.js tutorial.
install node modules
$ npm i
build next app
npm run build
deploy to GAE
npm run deploy
install node modules
npm i
build & start localhost:3000
npm run dev