NextJS deployed on Github Pages

Features:

Note:

  • .env file is using NextJS's way of exposing environment variables - by adding "NEXT_PUBLIC_" at the beginning of the name to then be accessible in the browser without setting them on server
  • Replace /nextjs-pages with your repository name

Guide

  1. Run npm run build to test success on build
  2. Run npm run export to test success on export to out folder
  3. Push changes to main branch in order for deployment to run