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:
parent
c1253663b7
commit
7961d00e56
1 changed files with 7 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue