Compare commits

..

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 8a6e57365c 0.9.4 2024-03-17 05:44:51 +01:00
DebaucheryLibrarian 21a44c93f6 Disabled early hints. 2024-03-17 05:44:47 +01:00
3 changed files with 9 additions and 11 deletions

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.9.3", "version": "0.9.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.9.3", "version": "0.9.4",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@ -70,5 +70,5 @@
"postcss-custom-media": "^10.0.2", "postcss-custom-media": "^10.0.2",
"postcss-nesting": "^12.0.2" "postcss-nesting": "^12.0.2"
}, },
"version": "0.9.3" "version": "0.9.4"
} }

View File

@ -162,18 +162,16 @@ export default async function initServer() {
return; return;
} }
const { /*
body, statusCode, headers, earlyHints,
} = httpResponse;
if (res.writeEarlyHints) { 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)); httpResponse.headers.forEach(([name, value]) => res.setHeader(name, value));
res.status(statusCode); res.status(httpResponse.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
res.send(body); res.send(httpResponse.body);
}); });
router.use(errorHandler); router.use(errorHandler);