The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Merge branch 'master' into pr/11492
Terry Sutton1a55f45640c0
diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdxindex 264642e3aa2..c819a3f745f 100644--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx@@ -255,7 +255,9 @@ export default function SupabaseProvider({ children }) {const [supabase] = useState(() => createClient())useEffect(() => {- const { data: { subscription } } = supabase.auth.onAuthStateChange((event, session) => {+ const {+ data: { subscription },+ } = supabase.auth.onAuthStateChange((event, session) => {if (session?.access_token !== accessToken) {router.refresh()}@@ -306,11 +308,11 @@ export default function SupabaseProvider({ children }: { children: React.ReactNo}export const useSupabase = () => {- let context = useContext(Context);+ let context = useContext(Context)if (context === undefined) {- throw new Error("useSupabase must be used inside SupabaseProvider");+ throw new Error('useSupabase must be used inside SupabaseProvider')} else {- return context;+ return context}}```