Install dependencies
Use the lockfile as the source of dependency intent.
On this production server, pnpm may report ignored build scripts for sharp. That is a package-manager policy issue, not an application compile error.
npm install
npm run typecheckRun development server
The development server is useful for local UI work.
If port 3000 is already used by production, run dev mode on another port.
PORT=3001 npm run devProduction check
Use the check script before restarting production. It runs TypeScript and then creates a full Next.js production build.
npm run check