split global.css

This commit is contained in:
2026-05-17 14:44:45 +02:00
parent ac99cc724a
commit 93fdb8d1fc
19 changed files with 3605 additions and 3397 deletions
+4 -2
View File
@@ -52,8 +52,10 @@ export const ALL: APIRoute = async ({ request, params }) => {
if (FORBIDDEN_RESPONSE_HEADERS.has(k)) return;
responseHeaders.set(key, value);
});
// @ts-expect-error — getSetCookie is on Node fetch's Headers
const setCookies: string[] = response.headers.getSetCookie?.() ?? [];
// getSetCookie is present on Node/undici Headers; type it locally so we
// neither depend on a specific @types/node nor need a ts-suppression.
const h = response.headers as Headers & { getSetCookie?: () => string[] };
const setCookies: string[] = h.getSetCookie?.() ?? [];
for (const c of setCookies) {
responseHeaders.append('set-cookie', c);
}