diff --git a/src/runtime/server/services/serverSupabaseServiceRole.ts b/src/runtime/server/services/serverSupabaseServiceRole.ts index 68799c4c..51e64bbf 100644 --- a/src/runtime/server/services/serverSupabaseServiceRole.ts +++ b/src/runtime/server/services/serverSupabaseServiceRole.ts @@ -7,10 +7,7 @@ import type { Database } from '#supabase/database' export const serverSupabaseServiceRole: (event: H3Event) => SupabaseClient = (event: H3Event) => { const { - supabase: { serviceKey }, - public: { - supabase: { url }, - }, + supabase: { serviceKey, url }, } = useRuntimeConfig(event) // Make sure service key is set