mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
11 lines
258 B
TypeScript
11 lines
258 B
TypeScript
export const prerender = false;
|
|
import { redirect } from '@sveltejs/kit';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load: PageLoad = async ({ parent }) => {
|
|
const { user } = await parent();
|
|
if (user) {
|
|
throw redirect(302, '/photos');
|
|
}
|
|
};
|