Install the dependencies.
Terminalnpm installCreate the local database. It applies every migration to a local copy of D1.
Terminalnpm run db:migrate:localAdd local secrets. Create
.dev.varsnext topackage.json..dev.varsEDIT_PASSCODE=choose-a-long-passcodeStart the app and open http://localhost:3000.
Terminalnpm run dev
Checks before a change
Terminal
npm run typecheck
npm run lint
npm run buildDevelopment
Terminal
npm install
npm run db:migrate:local
npm run devValidation
Terminal
npm run cf-typegen
npm run typecheck
npm run lint
npm audit --audit-level=high
npx opennextjs-cloudflare build
npx wrangler deploy --dry-runAdmin console links resolve through src/lib/admin-service.ts and the declared
service console list. Cards and detail pages use the owning service hostname and
/admin path; entries without a declared console have no external Admin link.
admin.appneurox.com serves the service directory from this same Worker.
Standalone *.admin.appneural.com routes are retired.