NextJs Build Out To Static HTML Index.html File


Quick note, Use these instructions to build out a static HTML for NextJs project.

  1. Open package.json
  2. Change build to: "build" : "next build && next export",
  3. Use command: npm run build or yarn build
  4. Done:

Resource: https://nextjs.org/docs/advanced-features/static-html-export