The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update supabase init options for v2
Inian90cdf32b7965
diff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.ymlindex cc7caa5b75f..caf73629f74 100644--- a/spec/supabase_js_v2_legacy.yml+++ b/spec/supabase_js_v2_legacy.yml@@ -39,11 +39,17 @@ pages:import { createClient } from '@supabase/supabase-js'const options = {- schema: 'public',- headers: { 'x-my-custom-header': 'my-app-name' },- autoRefreshToken: true,- persistSession: true,- detectSessionInUrl: true+ db: {+ schema: 'public',+ },+ auth: {+ autoRefreshToken: true,+ persistSession: true,+ detectSessionInUrl: true+ },+ global: {+ headers: { 'x-my-custom-header': 'my-app-name' },+ },}const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key", options)```@@ -54,7 +60,7 @@ pages:// Provide a custom schema. Defaults to "public".const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {- schema: 'other_schema'+ db: { schema: 'other_schema' }})```@@ -68,7 +74,7 @@ pages:import { createClient } from '@supabase/supabase-js'const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {- fetch: fetch.bind(globalThis)+ global: { fetch: fetch.bind(globalThis) }})```