mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-29 16:31:21 +00:00
10 lines
249 B
TypeScript
10 lines
249 B
TypeScript
import { redirect } from '@sveltejs/kit';
|
|
import type { LayoutServerLoad } from './$types';
|
|
|
|
export const load = (async ({ locals }) => {
|
|
if (locals.pb.authStore.isValid) {
|
|
throw redirect(303, '/');
|
|
}
|
|
|
|
return {};
|
|
}) satisfies LayoutServerLoad;
|