Skip to content

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

Update install and setup steps

dannykng3167ace0024e
diff --git a/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdx b/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdx
index 5c64f4ba60d..33c9458cb73 100644
--- a/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdx
+++ b/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdx
@@ -24,8 +24,15 @@ This submodule provides convenience helpers for implementing user authentication
```sh
npm install @supabase/auth-helpers-nextjs
+```
+
+This library supports the following tooling versions:
+
+- Node.js: `^10.13.0 || >=12.0.0`
+- Next.js: `>=10`
-# Main components and hooks for React based frameworks (optional)
+Optionally, install **React Auth Helpers** for components and hooks that can be used across all React-based frameworks.
+```sh
npm install @supabase/auth-helpers-react
```
@@ -34,26 +41,27 @@ npm install @supabase/auth-helpers-react
```sh
yarn add @supabase/auth-helpers-nextjs
-
-# Main components and hooks for React based frameworks (optional)
-yarn add @supabase/auth-helpers-react
```
-</TabItem>
-</Tabs>
-
This library supports the following tooling versions:
- Node.js: `^10.13.0 || >=12.0.0`
-
- Next.js: `>=10`
+Optionally, install **React Auth Helpers** for components and hooks that can be used across all React-based frameworks.
+
+```sh
+yarn add @supabase/auth-helpers-react
+```
+
+</TabItem>
+</Tabs>
+
## Set up environment variables
-Set up the following env vars. For local development you can set them in a `.env.local` file. See an [example](https://github.com/supabase/auth-helpers/blob/main/examples/nextjs/.env.local.example).
+Retrieve your project URL and anon key in your project's [API settings](https://app.supabase.com/project/_/settings/api) in the Dashboard to set up the following environment variables. For local development you can set them in a `.env.local` file. See an [example](https://github.com/supabase/auth-helpers/blob/main/examples/nextjs/.env.local.example).
```bash
-# Find these in your Supabase project settings > API
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
```