mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
1c05615159
* fix(pages): preserve CJS globals in bundled dependencies * fix(pages): use portable emitted CJS module identity * test(build): expect emitted proxy module identity * fix(build): support linked CommonJS package identity * fix(build): harden linked CommonJS transforms * fix(build): harden emitted CommonJS identity * test(pages): account for fixture route table growth * refactor(plugins): reuse shared module utilities * test(cloudflare): cover Pages bundled CJS globals * test(cloudflare): tolerate unmounted dev source identity * fix(build): preserve nested Cloudflare module identity * refactor(build): resolve deployed module filenames explicitly
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