-
Notifications
You must be signed in to change notification settings - Fork 406
feat(build): support independently deployed worker stages #3155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
james-elicx
merged 16 commits into
codex/cdn-v2-cloudflare-docs
from
codex/cdn-v2-http-transport
Sep 7, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
428fbf1
feat(build): support independently deployed worker stages
james-elicx 12f819c
fix(build): preserve array input entry names
james-elicx 1e81c43
fix(build): preserve host inputs when emitting stages
james-elicx d54feaa
fix(build): isolate multi-stage server outputs
james-elicx 5fc615e
fix(cache): reject unsupported HTTP stage variants
james-elicx 72dd102
docs(build): clarify shared transport variance
james-elicx faca32d
refactor(cache): share staged Vary selectors
james-elicx c51f551
fix(build): keep HTTP admission lazy
james-elicx fc6e2fa
test(build): cover remote-stage draft bypass
james-elicx dca27d8
fix(cache): key admitted HTTP response variants
james-elicx f40c85e
fix(build): colocate staged output sidecars
james-elicx 3eff37f
fix(build): reuse published stage output type
james-elicx cb48535
fix(build): reject classic multi-stage outputs
james-elicx 9166afe
fix(build): complete staged output validation
james-elicx 5e0ebb1
test(build): cover commonjs stage output alias
james-elicx b3ff95d
fix(build): colocate Pages stage sidecars
james-elicx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| /** Request selectors that define a reusable full-route RSC response variant. */ | ||
| export const RSC_HEADER = "RSC"; | ||
| export const NEXT_ROUTER_STATE_TREE_HEADER = "Next-Router-State-Tree"; | ||
| export const NEXT_ROUTER_PREFETCH_HEADER = "Next-Router-Prefetch"; | ||
| export const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = "Next-Router-Segment-Prefetch"; | ||
| export const NEXT_URL_HEADER = "Next-Url"; | ||
| export const VINEXT_INTERCEPTION_CONTEXT_HEADER = "X-Vinext-Interception-Context"; | ||
| export const VINEXT_INTERCEPTION_ID_HEADER = "X-Vinext-Interception-Id"; | ||
| export const VINEXT_MOUNTED_SLOTS_HEADER = "X-Vinext-Mounted-Slots"; | ||
| export const VINEXT_RSC_RENDER_MODE_HEADER = "X-Vinext-Rsc-Render-Mode"; | ||
| export const VINEXT_RSC_STATE_FINGERPRINT_HEADER = "X-Vinext-Rsc-State-Fingerprint"; | ||
|
|
||
| export const VINEXT_RSC_VARY_HEADER = [ | ||
| RSC_HEADER, | ||
| NEXT_ROUTER_STATE_TREE_HEADER, | ||
| NEXT_ROUTER_PREFETCH_HEADER, | ||
| NEXT_ROUTER_SEGMENT_PREFETCH_HEADER, | ||
| NEXT_URL_HEADER, | ||
| VINEXT_INTERCEPTION_CONTEXT_HEADER, | ||
| VINEXT_INTERCEPTION_ID_HEADER, | ||
| VINEXT_MOUNTED_SLOTS_HEADER, | ||
| VINEXT_RSC_RENDER_MODE_HEADER, | ||
| VINEXT_RSC_STATE_FINGERPRINT_HEADER, | ||
| ].join(", "); | ||
|
|
||
| const VINEXT_RSC_VARY_FIELDS = new Set( | ||
| VINEXT_RSC_VARY_HEADER.split(",").map((name) => name.trim().toLowerCase()), | ||
| ); | ||
|
|
||
| /** Whether a normalized response `Vary` field is a framework RSC selector. */ | ||
| export function isVinextRscVaryField(name: string): boolean { | ||
| return VINEXT_RSC_VARY_FIELDS.has(name.trim().toLowerCase()); | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.