Skip to content

Deployment

Cloudflare Pages (OpenNext)

The site is deployed to Cloudflare Pages using OpenNext.

Key files: - open-next.config.ts - wrangler.json - scripts/build-pages-opennext.mjs

Build Output

npm run pages:build: 1. Temporarily creates middleware.ts from proxy.ts. 2. Runs opennextjs-cloudflare build. 3. Copies the worker and runtime assets into .open-next/assets. 4. Generates _routes.json for Pages advanced mode.

Output directory: .open-next/assets (see wrangler.json).

Deploy

  • Local: npm run pages:deploy (build + wrangler pages deploy)
  • Dashboard build config:
  • Build command: npm run pages:build
  • Build output: .open-next/assets

Observability

Production checks are scripted in scripts/production-observability.mjs and can be run with: - npm run observability:check

It checks critical paths, status codes, and TTFB thresholds.