Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add generated files

Inian395dcbe8a840
diff --git a/apps/reference/_supabase_js/generated/initializing.mdx b/apps/reference/_supabase_js/generated/initializing.mdx
index 5946c73dd83..0f86781c565 100644
--- a/apps/reference/_supabase_js/generated/initializing.mdx
+++ b/apps/reference/_supabase_js/generated/initializing.mdx
@@ -379,11 +379,17 @@ const supabase = createClient(
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',
@@ -402,7 +408,7 @@ const supabase = createClient(
'https://xyzcompany.supabase.co',
'public-anon-key',
{
- schema: 'other_schema',
+ db: { schema: 'other_schema' },
}
)
```
@@ -421,7 +427,7 @@ const supabase = createClient(
'https://xyzcompany.supabase.co',
'public-anon-key',
{
- fetch: fetch.bind(globalThis),
+ global: { fetch: fetch.bind(globalThis) },
}
)
```
diff --git a/apps/reference/_supabase_js/generated/subscribe.mdx b/apps/reference/_supabase_js/generated/subscribe.mdx
index 6b88cc3c709..346bd7632c7 100644
--- a/apps/reference/_supabase_js/generated/subscribe.mdx
+++ b/apps/reference/_supabase_js/generated/subscribe.mdx
@@ -217,16 +217,3 @@ const myChannel = supabase
)
.subscribe()
```
-
-### Listening to Broadcast changes
-
-You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
-
-```js
-const myChannel = supabase
- .channel('broadcastChannel', {
- configs: { broadcast: { self: true, ack: true } },
- })
- .on('broadcast', { event: 'post' }, (payload) => console.log(payload))
- .subscribe()
-```