Documentation site for Abstract Machines Hardware, built with Fumadocs and Next.js.
The site is served under /docs/hardware/.
pnpm install
pnpm devOpen http://localhost:3000/docs/hardware/ with your browser to see the result.
This site uses:
- Next.js static export —
next buildoutputs static files toout/ - Next.js
basePath— generates links and assets under/docs/hardware - Post-build nesting —
scripts/nest-static-export.mjsmoves the export underout/docs/hardware/so Cloudflare static assets can serve it from the route prefix without custom Worker code
| Setting | Value |
|---|---|
| Build command | pnpm run build |
| Deploy command | npx wrangler deploy |
| Version command | npx wrangler versions upload |
| Root directory | / |
Only one build variable is needed:
NEXT_PUBLIC_BASE_URL=https://www.absmach.eu/docs/hardwareSet this as a Cloudflare build variable so it is embedded into the static output at build time.