This repository has been archived on 2025-08-19. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
coinstorge/website/src/routes/+layout.server.ts
Face 8a8c141fbe Revert "ssr on"
This reverts commit 3e9a22e788.
2025-06-27 21:29:31 +03:00

16 lines
No EOL
436 B
TypeScript

import type { LayoutServerLoad } from './$types';
import { dev } from '$app/environment';
export const load: LayoutServerLoad = async (event) => {
event.setHeaders({
'Cache-Control': dev
? 'no-cache'
: 'private, max-age=30'
});
// Use the user data already fetched and processed in hooks
return {
userSession: event.locals.userSession,
url: event.url.pathname,
};
};