Unified Next.js app serving the marketing homepage and Nextra docs.
- Homepage:
public/index.html(served at/via Next rewrites) - Docs: Nextra at
/docs(content underpages/docs/)
- Node.js 18+ (recommend 18.17+ or 20+)
- npm 9+
# from repo root
npm install --cache ./.npm-cache
npm run devOpen http://localhost:3030 for the homepage and http://localhost:3030/docs for docs.
If you hit npm cache permission errors, using the local cache flag above avoids writing to ~/.npm.
npm run build
npm startpublic/index.html— existing static marketing page (unchanged)pages/docs/**— docs pages (MDX)theme.config.tsx— Nextra theme configurationnext.config.js— Next + Nextra config, with rewrite for/