Skip to content

Commit

Permalink
have SSR pages return text/html content type
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Aug 6, 2023
1 parent 3d2f640 commit 54110a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/src/lifecycles/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ async function bundleSsrPages(compilation) {
staticHtml = staticHtml.replace(\/\<content-outlet>(.*)<\\/content-outlet>\/s, data.body);
}
return new Response(staticHtml);
return new Response(staticHtml, {
headers: {
'Content-Type': 'text/html'
}
});
}
`);

Expand Down

0 comments on commit 54110a1

Please sign in to comment.