Slightly working

This commit is contained in:
Roman Krček
2025-06-19 19:42:08 +02:00
parent 51dbfcc1bb
commit 9c94f9c717
12 changed files with 162 additions and 92 deletions

View File

@@ -8,7 +8,7 @@ export const load: LayoutLoad = async ({ fetch, data, depends }) => {
? createBrowserClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, {
global: {
fetch,
},
}
})
: createServerClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, {
global: {
@@ -16,7 +16,7 @@ export const load: LayoutLoad = async ({ fetch, data, depends }) => {
},
cookies: {
getAll() {
return data?.cookies ?? []
return data.cookies ?? []
},
},
})