1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-17 01:06:46 +01:00

fix(web): Configure web's immich sdk to use event.fetch (#9233)

* Set event.fetch on @immich/sdk

* format
This commit is contained in:
Min Idzelis 2024-05-02 17:12:01 -04:00 committed by GitHub
parent c1253663b7
commit 7961d00e56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,15 @@
import { defaults } from '@immich/sdk';
import type { LayoutLoad } from './$types';
export const ssr = false;
export const csr = true;
export const load = (() => {
export const load = (({ 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;
return {
meta: {
title: 'Immich',