Skip to content

Commit 7ab5f97

Browse files
committed
add comment
1 parent 56d6c93 commit 7ab5f97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/kit/src/core/postbuild/prerender.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ async function prerender({ out, manifest_path, metadata, verbose, env }) {
208208
const response = await server.respond(
209209
new Request(config.prerender.origin + encoded, {
210210
headers: {
211+
// we need to specify text/html or else content negotiation
212+
// will prefer any +server file over +page for the same route
211213
accept: 'text/html,*/*'
212214
}
213215
}),

0 commit comments

Comments
 (0)