mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
23a5cb2ceb
* refactor: delete app-dev-server.ts and update all references to entries/ directly The file was already a pure re-export shim with no logic of its own. Update every import/dynamic-import site to point straight at the individual entry modules: entries/app-rsc-entry.ts ← generateRscEntry, AppRouterConfig entries/app-ssr-entry.ts ← generateSsrEntry entries/app-browser-entry.ts ← generateBrowserEntry Sites updated: packages/vinext/src/index.ts tests/entry-templates.test.ts tests/app-router.test.ts tests/shims.test.ts Also update stale comments in: server/middleware-codegen.ts, server/request-pipeline.ts, server/instrumentation.ts, shims/metadata.tsx, tests/rsc-streaming.test.ts, tests/nextjs-compat/rsc-context-lazy-stream.test.ts, examples/app-router-cloudflare/instrumentation*.ts * docs: update app-dev-server.ts references in markdown files to entries/
App Router on Cloudflare Workers
A minimal example of a Next.js App Router application running on Cloudflare Workers via vinext.
Demonstrates server components, client components, dynamic routes, and API route handlers.
Running Locally
- Install dependencies:
pnpm install
- Start the dev server:
pnpm dev
- Build for production:
pnpm build
- Preview the production build:
pnpm preview