Repository navigation
[Workers, Pages] Update Pages-to-Workers migration guide and prompt - #35676
Merged
Merged
Conversation
Contributor
|
Worker Preview URL: https://gh-docs-pages-workers-migration-guide.previews.developers.cloudflare.com Files with changes (up to 15)
|
irvinebroque
marked this pull request as ready for review
November 27, 2026 04:48
irvinebroque
requested review from
a team,
GregBrimble,
MattieTK,
Maximo-Guk,
WalshyDev and
vy-ton
as code owners
November 27, 2026 04:48
Contributor
AI Review✅ Reviewed Commands
|
1 task
irvinebroque
enabled auto-merge
November 29, 2026 21:38
Contributor
|
Looks good. One small thing before I approve: the |
yomna-shousha
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the Pages-to-Workers migration guide (
src/content/docs/workers/static-assets/migration-guides/migrate-from-pages.mdx) and the companion migration prompt (public/workers/prompts/pages-to-workers.txt) to fix inaccurate migration guidance and reflect current Workers capabilities./workers/wrangler/commands/general/#deployand#dev).wrangler setupcannot run on a Pages project, how to match both/apiand/api/*, and why Workers Cache—not zone Cache Rules—can serve cached Worker responses without running the handler. Adds comparison rows for Workflows, Containers, and Secrets Store.In 19 local migration attempts across four fixtures, the original Next.js probes passed with every prompt variant. The difference showed up after adding a private
404and making a prerendered route private:With the prior PR head, one migration rewrote private responses as public and added wildcard CORS; the other stopped building when the prerendered file disappeared. Both final-prompt runs preserved the responses and produced smaller wrappers (28–30 lines vs. 73–99). This rerun did not deploy anything or verify Git-connected previews.
Closes #20445
Documentation checklist