Files
cloudflare__vinext/examples/pages-router-cloudflare
James Anderson 4e0294fc4f fix: middleware crash in dev mode with cloudflare plugin (#344)
* test: middleware with cloudflare plugin and routing bypass

* fix: use module runner for pages middleware

* add pages router dev test
2026-03-08 14:04:11 +00:00
..
2026-02-24 09:29:39 -06:00
2026-02-24 09:29:39 -06:00
2026-02-24 09:29:39 -06:00

Pages Router on Cloudflare Workers

A minimal example of a Next.js Pages Router application running on Cloudflare Workers via vinext.

Demonstrates getServerSideProps, next/head, next/link, dynamic routes, and API routes.

Running Locally

  1. Install dependencies:
pnpm install
  1. Start the dev server:
pnpm dev
  1. Build for production:
pnpm build
  1. Preview the production build:
pnpm preview