The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Readme updated.
meera-dateyfd553cc0400e
diff --git a/examples/realtime/nextjs-auth-presence/README.md b/examples/realtime/nextjs-auth-presence/README.mdindex 1dbb16e30e3..5ee9ad1e426 100644--- a/examples/realtime/nextjs-auth-presence/README.md+++ b/examples/realtime/nextjs-auth-presence/README.md@@ -9,7 +9,8 @@ User get authenticated using Supabase Auth API. Once Logged-in you can see which- Backend:- [app.supabase.io](https://app.supabase.io/): hosted postgres database with realtime support.-+## Real time Presence APIs used.+This program shows usage of channel presence API calls such as , channel.on('presence', ...), channel.subscribe function usage.## Getting Started@@ -38,11 +39,11 @@ The `anon` key is your client-side API key. It allows "anonymous access" to yourCreate a .env.local file and add following environment variables.+ ```+ NEXT_PUBLIC_SUPABASE_URL=<<insert-your-db-url-here>>--`NEXT_PUBLIC_SUPABASE_URL=<<insert-your-db-url-here>>--NEXT_PUBLIC_SUPABASE_ANON_KEY=<<insert-your-anon-key-here>>`+NEXT_PUBLIC_SUPABASE_ANON_KEY=<<insert-your-anon-key-here>>+```diff --git a/examples/realtime/nextjs-auth-presence/pages/index.tsx b/examples/realtime/nextjs-auth-presence/pages/index.tsxindex 142b209e171..e14b8306f7f 100644--- a/examples/realtime/nextjs-auth-presence/pages/index.tsx+++ b/examples/realtime/nextjs-auth-presence/pages/index.tsx@@ -3,7 +3,6 @@ import { useUser, useSupabaseClient } from '@supabase/auth-helpers-react'import { useEffect, useState } from 'react'-import { createBrowserSupabaseClient } from '@supabase/auth-helpers-nextjs'import { withPageAuth } from '@supabase/auth-helpers-nextjs'import { RealtimePresenceState } from '@supabase/supabase-js'@@ -11,7 +10,6 @@ const HomePage: NextPage = () => {const supabaseClient = useSupabaseClient()const this_user = useUser()const [userState, setUserState] = useState<RealtimePresenceState>({})- //const channel = useRef<RealtimeChannel>();useEffect(() => {console.log('user : ', this_user);