The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: change require to import in code sample (#19328)
Tylere4a8323fe306
diff --git a/apps/docs/pages/guides/realtime/subscribing-to-database-changes.mdx b/apps/docs/pages/guides/realtime/subscribing-to-database-changes.mdxindex 1836c91a0b9..95af82a7e66 100644--- a/apps/docs/pages/guides/realtime/subscribing-to-database-changes.mdx+++ b/apps/docs/pages/guides/realtime/subscribing-to-database-changes.mdx@@ -50,7 +50,7 @@ alterYou can use the `INSERT` event to stream all new rows.```js-const { createClient } = require('@supabase/supabase-js')+import { createClient } from '@supabase/supabase-js'const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_KEY)@@ -72,7 +72,7 @@ const channel = supabaseYou can use the `UPDATE` event to stream all updated rows.```js-const { createClient } = require('@supabase/supabase-js')+import { createClient } from '@supabase/supabase-js'const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_KEY)