Skip to content

Commit

Permalink
[next] Update RSC header in has routes (#8651)
Browse files Browse the repository at this point in the history
### Related Issues

x-ref: vercel/next.js#40979

### 📋 Checklist

<!--
  Please keep your PR as a Draft until the checklist is complete
-->

#### Tests

- [ ] The code changed/added as part of this PR has been covered with
tests
- [ ] All tests pass locally with `yarn test-unit`

#### Code Review

- [ ] This PR has a concise title and thorough description useful to a
reviewer
- [ ] Issue from task tracker has a link to this PR
  • Loading branch information
ijjk committed Sep 28, 2022
1 parent c42f309 commit c7c9b1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/server-build.ts
Expand Up @@ -1134,7 +1134,7 @@ export async function serverBuild({
if (appPathRoutesManifest) {
// create .rsc variant for app lambdas and edge functions
// to match prerenders so we can route the same when the
// __flight__ header is present
// __rsc__ header is present
const edgeFunctions = middleware.edgeFunctions;

for (let route of Object.values(appPathRoutesManifest)) {
Expand Down Expand Up @@ -1393,7 +1393,7 @@ export async function serverBuild({
has: [
{
type: 'header',
key: '__flight__',
key: '__rsc__',
},
],
dest: path.posix.join('/', entryDirectory, '/$1.rsc'),
Expand Down
2 changes: 1 addition & 1 deletion packages/next/test/fixtures/00-app-dir/vercel.json
Expand Up @@ -15,7 +15,7 @@
"path": "/dashboard",
"status": 200,
"headers": {
"__flight__": "1"
"__rsc__": "1"
},
"mustContain": "M1:{",
"mustNotContain": "<html"
Expand Down

0 comments on commit c7c9b1a

Please sign in to comment.