mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
16a14c713b
* Fix headers matching original path * Review redirect ordering parity * Fix config redirects order * Fix dev middleware parity * Fix dev middleware request parity * address review: worker header/fallback parity, early-return in attachRouteHandlerMiddlewareContext, cache node request headers, add dev redirect test * address second-round bonk comments: sanitizeDestination in worker redirect, nodeRequestHeaders comment, app-rsc-entry guard comment, E2E redirect test, updated snapshots --------- Co-authored-by: James <james@eli.cx>
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
- Install dependencies:
pnpm install
- Start the dev server:
pnpm dev
- Build for production:
pnpm build
- Preview the production build:
pnpm preview