Skip to content

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

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.mdx
index 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 @@ alter
You 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 = supabase
You 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)