Skip to content

Commit

Permalink
Revert "[next] Update rsc content-type test fixtures (#10023)"
Browse files Browse the repository at this point in the history
This reverts commit 96b2502.
  • Loading branch information
ijjk committed May 29, 2023
1 parent 57515d2 commit 6c57ca2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .changeset/purple-islands-rule.md

This file was deleted.

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 6c57ca2

Please sign in to comment.