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
npm run typecheck
npm run lint
npm run buildRun and validate
npm install
npm run db:migrate:local
npm run dev
npm run cf-typegen
npm run typecheck
npm run lint
npm run build
npx opennextjs-cloudflare build
npx wrangler deploy --dry-run --env=""Only the production D1 binding, article-catalog-db, is part of the Worker
configuration. Apply its remote migrations before deploying production. The
removed development Worker environment is intentionally not deployable from
this repository. The public custom domain is article-journal.appneurox.com.
The committed production D1 resource ID is the deployment source of truth.
Keep remote migrations current and configure EDIT_PASSCODE as a Worker secret.
Item fallbacks are routed through *.articles.appneural.com/*, matching the
managed wildcard certificate for the production hostname. The corresponding
subdomain-catalog entry is promoted to Production only after the repository,
D1 database, Worker, DNS, TLS, API, and content are independently live-verified.