2024-06-27 09:09:28 -04:00
|
|
|
import { initApp } from '$lib/utils';
|
2024-05-02 17:12:01 -04:00
|
|
|
import { defaults } from '@immich/sdk';
|
2023-11-17 23:13:36 -05:00
|
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
|
|
|
|
|
|
export const ssr = false;
|
|
|
|
|
export const csr = true;
|
|
|
|
|
|
2024-06-04 21:53:00 +02:00
|
|
|
export const load = (async ({ fetch }) => {
|
2024-05-02 17:12:01 -04:00
|
|
|
// 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;
|
|
|
|
|
|
2024-06-27 09:09:28 -04:00
|
|
|
await initApp();
|
2024-06-04 21:53:00 +02:00
|
|
|
|
2023-11-17 23:13:36 -05:00
|
|
|
return {
|
|
|
|
|
meta: {
|
|
|
|
|
title: 'Immich',
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}) satisfies LayoutLoad;
|