Skip to content

fix(cloudflare): replace deploy prerendering with prewarming - #3340

Draft
james-elicx wants to merge 1 commit into
mainfrom
codex/cloudflare-discourage-prerender
Draft

james-elicx wants to merge 1 commit into
mainfrom
codex/cloudflare-discourage-prerender

Conversation

@james-elicx

Copy link
Copy Markdown
Member

Summary

  • stop local prerendering and direct KV bulk uploads during Cloudflare Worker deploys
  • direct prerender users to the staged Worker CDN pre-warming path while preserving output: export
  • remove prerender generation and prompting from Cloudflare init while keeping Node init support and preserving existing user config

Builds on the deployed KV pre-warming support from #3324.

Validation

  • vp test run tests/deploy-prerender-config.test.ts tests/deploy.test.ts tests/init-platform.test.ts tests/init.test.ts tests/init-cloudflare.test.ts (577 passed)
  • vp check on all changed source and test files
  • vp run vinext#build
  • vp run @vinext/cloudflare#build
  • vp run knip
  • git diff --check

@pkg-pr-new

pkg-pr-new Bot commented Sep 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vinext/cloudflare

npm i https://pkg.pr.new/@vinext/cloudflare@3340

create-vinext-app

npm i https://pkg.pr.new/create-vinext-app@3340

@vinext/types

npm i https://pkg.pr.new/@vinext/types@3340

vinext

npm i https://pkg.pr.new/vinext@3340

@cloudflare/workers-response-store

npm i https://pkg.pr.new/@cloudflare/workers-response-store@3340

commit: 92e4956

@github-actions

Copy link
Copy Markdown
Contributor
Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original
response-store-demo preview production
workers-cache preview production
kv preview production
static-export preview production
web preview production

@github-actions

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared 92e4956 against base e5330aa using alternating same-runner rounds. Next.js was unchanged and skipped.

0 improved · 0 regressed · 6 within ±1.5%

Scenario Framework Baseline Current Change
Client bundle size (gzip) vinext 142.2 KB 142.2 KB ⚫ +0.0%
Client entry size (gzip) vinext 129.6 KB 129.6 KB ⚫ -0.0%
Dev server cold start vinext 2.51 s 2.51 s ⚫ +0.1%
Production build time vinext 2.70 s 2.71 s ⚫ +0.3%
RSC entry closure size (gzip) vinext 121.1 KB 121.1 KB ⚫ -0.0%
Server bundle size (gzip) vinext 218.3 KB 218.3 KB ⚫ -0.0%

View detailed results and traces

🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant