Deploy this docs site
The Nextra site lives in www/ at the kit repo root. It builds as a standalone Next.js app.
Local
cd sumx-ssr-kit
pnpm install
pnpm run docs:dev # http://localhost:3100
pnpm run docs:build
pnpm run docs:startDocker
Build context must be the monorepo root (the Dockerfile copies package.json, www/, and workspace packages).
From sumx-kit root:
pnpm run docs:docker:build
pnpm run docs:docker:runOr manually:
docker build -f www/Dockerfile -t sumx-kit-docs .
docker run --rm -p 3100:3000 sumx-kit-docsFrom www/ (context is parent directory):
pnpm run docker:build
pnpm run docker:runDo not run docker build . inside www/ — that omits the repo root and fails on COPY www/package.json.
Production notes
- Set
NODE_ENV=production. - Put behind HTTPS reverse proxy (nginx, Azure App Service, etc.).
- Optional: set
PORTenv (image defaults to3000).
Build context
The Dockerfile uses the monorepo root so pnpm install can resolve the workspace. Only www/ is required at runtime.