The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: fix wrong code demo
wuyiyang6b39662cd504
diff --git a/web/docs/guides/with-nextjs.mdx b/web/docs/guides/with-nextjs.mdxindex 370bc396389..bbafc794aa1 100644--- a/web/docs/guides/with-nextjs.mdx+++ b/web/docs/guides/with-nextjs.mdx@@ -210,9 +210,9 @@ You can find the full contents of this file [here](https://raw.githubusercontentLet's set up a React component to manage logins and sign ups.We'll use Magic Links, so users can sign in with their email without using passwords.-```jsx title="/components/Auth.js"+```jsx title="components/Auth.js"import { useState } from 'react'-import { supabase } from './utils/supabaseClient'+import { supabase } from '../utils/supabaseClient'export default function Auth() {const [loading, setLoading] = useState(false)@@ -271,7 +271,7 @@ Let's create a new component for that called `Account.js`.```jsx title="components/Account.js"import { useState, useEffect } from 'react'-import { supabase } from './utils/supabaseClient'+import { supabase } from '../utils/supabaseClient'export default function Account({ session }) {const [loading, setLoading] = useState(true)@@ -288,7 +288,7 @@ export default function Account({ session }) {setLoading(true)const user = supabase.auth.user()- let { data, error } = await supabase+ let { data, error, status } = await supabase.from('profiles').select(`username, website, avatar_url`).eq('id', user.id)@@ -557,4 +557,4 @@ return (At this stage you have a fully functional application!- Got a question? [Ask here](https://github.com/supabase/supabase/discussions).-- Sign in: app.supabase.io\ No newline at end of file+- Sign in: app.supabase.io