Next.js static site configured for GitHub Pages deployment.
- Node.js 20 or newer
- npm
npm installStart the development server:
npm run devOpen http://localhost:3000.
Create a production build:
npm run buildBecause this project uses output: 'export', the static site is generated in the out/ directory.
Build the static site, then preview the exported files locally:
npm run build
npm run startThis project is configured with:
homepage:http://guruswaami.github.io/itswiftbasePath:/itswift
Deploy with:
npm run deployThe deploy script publishes the contents of out/ using:
gh-pages -d out -tnpm run dev- start the local development servernpm run build- create the production build and static exportnpm run start- preview the exportedout/directorynpm run predeploy- run the build before deploymentnpm run deploy- publish theout/directory to GitHub Pages