frontend/src/routes/+layout.server.ts
2024-09-23 00:03:09 +02:00

11 lines
220 B
TypeScript

export const load = ({ locals, cookies }) => {
const { user, isUSRegion, wsURL } = locals;
return {
user: user || undefined,
isUSRegion,
cookieConsent: cookies?.get("cookie-consent"),
wsURL,
};
};