mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
lint fixes
This commit is contained in:
parent
347e4b6599
commit
c431b621ec
@ -63,7 +63,8 @@ async function startServer() {
|
|||||||
next()
|
next()
|
||||||
} else {
|
} else {
|
||||||
const { body, statusCode, headers, earlyHints } = httpResponse
|
const { body, statusCode, headers, earlyHints } = httpResponse
|
||||||
if (res.writeEarlyHints) res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
|
if (res.writeEarlyHints)
|
||||||
|
res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
|
||||||
headers.forEach(([name, value]) => res.setHeader(name, value))
|
headers.forEach(([name, value]) => res.setHeader(name, value))
|
||||||
res.status(statusCode)
|
res.status(statusCode)
|
||||||
// For HTTP streams use httpResponse.pipe() instead, see https://vike.dev/stream
|
// For HTTP streams use httpResponse.pipe() instead, see https://vike.dev/stream
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user