feat(supabase): add read replica routing (#1274)

This commit is contained in:
Gergő Móricz 2025-02-28 09:52:26 +01:00 committed by GitHub
parent 39b61132bf
commit 904e69bfbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,13 @@ class SupabaseService {
"Supabase environment variables aren't configured correctly. Supabase client will not be initialized. Fix ENV configuration or disable DB authentication with USE_DB_AUTHENTICATION env variable", "Supabase environment variables aren't configured correctly. Supabase client will not be initialized. Fix ENV configuration or disable DB authentication with USE_DB_AUTHENTICATION env variable",
); );
} else { } else {
this.client = createClient(supabaseUrl, supabaseServiceToken); this.client = createClient(supabaseUrl, supabaseServiceToken, {
global: {
headers: {
"sb-lb-routing-mode": "alpha-all-services",
},
},
});
} }
} }