We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ba055 commit c11d503Copy full SHA for c11d503
src/runtime/server/services/serverSupabaseServiceRole.ts
@@ -1,5 +1,6 @@
1
import type { SupabaseClient } from '@supabase/supabase-js'
2
import { createClient } from '@supabase/supabase-js'
3
+import { fetchWithRetry } from '../../utils/fetch-retry'
4
import type { H3Event } from 'h3'
5
import { useRuntimeConfig } from '#imports'
6
// @ts-expect-error - `#supabase/database` is a runtime alias
@@ -27,6 +28,9 @@ export const serverSupabaseServiceRole: <T = Database>(event: H3Event) => Supaba
27
28
persistSession: false,
29
autoRefreshToken: false,
30
},
31
+ global: {
32
+ fetch: fetchWithRetry,
33
+ },
34
})
35
}
36
0 commit comments