mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
75703d3b72
* Skip deploy previews for fork PRs that lack Cloudflare secrets Fork PRs don't have access to repository secrets (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID), so deploy/smoke-test/comment steps always fail. Add a fork detection condition to skip these steps gracefully. The build steps still run, so example builds are still validated for fork PRs. * fix: align Pages Router worker entry with prod-server request handling The generated Cloudflare Worker entry for Pages Router apps was missing several request handling steps that the Node.js production server (prod-server.ts) already handled. This brings the two in sync: - Run middleware (runMiddleware) before routing - Apply next.config.js redirects, rewrites (before/after/fallback), and headers - Handle basePath stripping and trailing slash normalization - Merge middleware response headers with correct precedence - Guard renderPage with typeof check Also updates the two Pages Router examples (pages-router-cloudflare, realworld-api-rest) and exports vinext/config/config-matchers so the worker entry can import the shared matching utilities. * chore: sync pnpm-lock.yaml with upstream package.json changes