Compare commits
2 Commits
12fa3a9fe5
...
8a6e57365c
Author | SHA1 | Date |
---|---|---|
|
8a6e57365c | |
|
21a44c93f6 |
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "traxxx-web",
|
||||
"version": "0.9.3",
|
||||
"version": "0.9.4",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"version": "0.9.3",
|
||||
"version": "0.9.4",
|
||||
"dependencies": {
|
||||
"@brillout/json-serializer": "^0.5.8",
|
||||
"@dicebear/collection": "^7.0.5",
|
||||
|
|
|
@ -70,5 +70,5 @@
|
|||
"postcss-custom-media": "^10.0.2",
|
||||
"postcss-nesting": "^12.0.2"
|
||||
},
|
||||
"version": "0.9.3"
|
||||
"version": "0.9.4"
|
||||
}
|
||||
|
|
|
@ -162,18 +162,16 @@ export default async function initServer() {
|
|||
return;
|
||||
}
|
||||
|
||||
const {
|
||||
body, statusCode, headers, earlyHints,
|
||||
} = httpResponse;
|
||||
|
||||
/*
|
||||
if (res.writeEarlyHints) {
|
||||
res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) });
|
||||
res.writeEarlyHints({ link: httpResponse.earlyHints.map((e) => e.earlyHintLink) });
|
||||
}
|
||||
*/
|
||||
|
||||
headers.forEach(([name, value]) => res.setHeader(name, value));
|
||||
res.status(statusCode);
|
||||
httpResponse.headers.forEach(([name, value]) => res.setHeader(name, value));
|
||||
res.status(httpResponse.statusCode);
|
||||
// For HTTP streams use httpResponse.pipe() instead, see https://vike.dev/stream
|
||||
res.send(body);
|
||||
res.send(httpResponse.body);
|
||||
});
|
||||
|
||||
router.use(errorHandler);
|
||||
|
|
Loading…
Reference in New Issue