# Build Instructions — soorten-fotoshoots-page Unchanged from over-mij-page: this feature adds no dependencies, build steps or environment variables. ## Prerequisites - **Node.js** 24 and **pnpm** (version pinned in `web/package.json`) - **Environment variables**: none for the build. `LIGHTHOUSE_PERFORMANCE=warn` only in CI. ## Build steps ```bash cd web pnpm install # also runs `chakra typegen` (postinstall); needed after the new frame.* theme tokens pnpm build # tsc && vite build ``` ## Verify - **Expected output**: `✓ built in …` and no TypeScript errors (0.9 s locally at d12665c) - **Artifacts**: `web/dist/`. New in this feature: ten shoot photos under `dist/assets/` (hashed names), `dist/og-soorten-fotoshoots.jpg` (copied from `public/`, stable URL for the preview image) and the page's own chunk `soorten-fotoshoots-*.js` (the shoot texts and structured data load with it, not with the main bundle) - **Accepted warning**: Vite's chunk-size warning for the main bundle (known, NFR-P-01) ## Troubleshooting - **Lighthouse or preview fails with "port in use"**: another preview on 4173 (another worktree, or a leftover `vite preview`: on Windows, killing the shell does not stop its node process). Check with `Get-NetTCPConnection -LocalPort 4173` and coordinate via "claim 4173" with the parallel feature sessions. - **A theme token is missing in types after a cherry-pick of the shoot types commit**: run `pnpm typegen`.