mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:49:11 -04: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,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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user