frontend/src/routes/+layout.server.ts
2024-07-27 01:23:58 +02:00

13 lines
305 B
TypeScript

export const load = ({ locals, cookies }) => {
const { user, region, apiURL, fastifyURL, wsURL, apiKey } = locals;
return {
user: user || undefined,
region,
cookieConsent: cookies?.get('cookie-consent'),
apiURL,
fastifyURL,
wsURL,
apiKey,
};
};