Skip to content

Commit

Permalink
Revert "[next] Update rsc content-type test fixtures" (#10040)
Browse files Browse the repository at this point in the history
Relies on vercel/next.js#50472 this should only be merged after the Next.js PR is released to canary

Reverts #10023
  • Loading branch information
ijjk committed May 31, 2023
1 parent 4280166 commit c63679e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .changeset/purple-islands-rule.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/thin-zebras-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vercel/next": patch
---

Revert "[next] Update rsc content-type test fixtures"
3 changes: 1 addition & 2 deletions packages/next/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2130,8 +2130,7 @@ export const onPrerenderRoute =
routesManifest?.rsc?.varyHeader ||
'RSC, Next-Router-State-Tree, Next-Router-Prefetch';
const rscContentTypeHeader =
routesManifest?.rsc?.contentTypeHeader ||
'text/x-component; charset=utf-8';
routesManifest?.rsc?.contentTypeHeader || 'text/x-component';

let sourcePath: string | undefined;
if (`/${outputPathPage}` !== srcRoute && srcRoute) {
Expand Down
4 changes: 2 additions & 2 deletions packages/next/test/fixtures/00-app-dir-edge/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"RSC": "1"
},
"responseHeaders": {
"content-type": "text/x-component; charset=utf-8"
"content-type": "text/x-component"
}
},
{
Expand All @@ -51,7 +51,7 @@
"RSC": "1"
},
"responseHeaders": {
"content-type": "text/x-component; charset=utf-8"
"content-type": "text/x-component"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/next/test/fixtures/00-app-dir-static/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"RSC": "1"
},
"responseHeaders": {
"content-type": "text/x-component; charset=utf-8",
"content-type": "text/x-component",
"vary": "RSC, Next-Router-State-Tree, Next-Router-Prefetch"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"RSC": "1"
},
"responseHeaders": {
"content-type": "text/x-component; charset=utf-8",
"content-type": "text/x-component",
"vary": "RSC, Next-Router-State-Tree, Next-Router-Prefetch"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/next/test/fixtures/00-app-dir/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"RSC": "1"
},
"responseHeaders": {
"content-type": "text/x-component; charset=utf-8",
"content-type": "text/x-component",
"vary": "RSC, Next-Router-State-Tree, Next-Router-Prefetch"
}
},
Expand Down

0 comments on commit c63679e

Please sign in to comment.