This monorepo is for running and building NextJs within NestJs server with fastify adapter. It solves the problem of not being able to build nextjs code when using static generation and fetching data from the server in this case your nestjs server.
To run development mode use
yarn dev
. For building useyarn build
Production viayarn start:prod
Credits to Geebrox for creating base template for NestJs and NextJs