Skip to content

Commit

Permalink
Merge branch 'master' into add-pinia-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge authored Mar 14, 2024
2 parents 0f47843 + 40face5 commit 28e3ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function startServer() {
next()
} else {
const { body, statusCode, headers, earlyHints } = httpResponse
if (res.writeEarlyHints)
if (process.env.EARLY_HINTS && res.writeEarlyHints)
res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
headers.forEach(([name, value]) => res.setHeader(name, value))
res.status(statusCode)
Expand Down

0 comments on commit 28e3ce7

Please sign in to comment.