14 lines
288 B
TypeScript
14 lines
288 B
TypeScript
export const load = ({ locals, cookies }) => {
|
|
const { user, isUSRegion, apiURL, fastifyURL, wsURL, apiKey } = locals;
|
|
|
|
return {
|
|
user: user || undefined,
|
|
isUSRegion,
|
|
cookieConsent: cookies?.get("cookie-consent"),
|
|
apiURL,
|
|
fastifyURL,
|
|
wsURL,
|
|
apiKey,
|
|
};
|
|
};
|