Multi-page company website for DnD Software, migrated from React + Vite to Next.js App Router.
- Next.js (App Router)
- React
- Global CSS design system carried over from the previous implementation
/Home/about/services/services/generative-ai/services/consulting/services/software/contact/privacy-policy/terms
npm install
npm run devnpm run buildBuild output is generated to out/ (static export).
app/sitemap.jsgeneratesout/sitemap.xmlduringnpm run build.app/robots.jsgeneratesout/robots.txtduringnpm run build.- Default site URL is
https://dndsoftware.co.zaif no env var is set. - Set
NEXT_PUBLIC_SITE_URLto override the domain for different environments. - Optional: set
NEXT_PUBLIC_BASE_PATH(orPAGES_BASE_PATH) when deploying under a subpath.
Example:
NEXT_PUBLIC_SITE_URL=https://dndsoftware.co.za npm run buildYou can start from .env.example and set values per environment.
GitHub Pages subpath example:
NEXT_PUBLIC_SITE_URL=https://username.github.io NEXT_PUBLIC_BASE_PATH=/repo-name npm run buildTo preview the exported static site locally:
npm run startNote: preview uses serve out (without SPA fallback mode) so per-route exported HTML files are served correctly.
- This migration intentionally focuses on framework transition and parity.
- The project is configured for static export (
output: 'export'). - SEO-specific enhancements can be added in a dedicated follow-up phase.