mirror of
https://github.com/immich-app/immich.git
synced 2025-12-29 01:11:52 +03:00
22 lines
546 B
TypeScript
22 lines
546 B
TypeScript
import { initApp } from '$lib/utils';
|
|
import { defaults } from '@immich/sdk';
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
export const ssr = false;
|
|
export const csr = true;
|
|
|
|
export const load = (async ({ fetch }) => {
|
|
// set event.fetch on the fetch-client used by @immich/sdk
|
|
// https://kit.svelte.dev/docs/load#making-fetch-requests
|
|
// https://github.com/oazapfts/oazapfts/blob/main/README.md#fetch-options
|
|
defaults.fetch = fetch;
|
|
|
|
await initApp();
|
|
|
|
return {
|
|
meta: {
|
|
title: 'Immich',
|
|
},
|
|
};
|
|
}) satisfies LayoutLoad;
|