Skip to content

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

Fix auth learn links, use relative links to docs

Terry Suttona2ec5c3d3997
diff --git a/apps/docs/components/Navigation/Navigation.constants.ts b/apps/docs/components/Navigation/Navigation.constants.ts
index db255e9b121..57a10d0e4c2 100644
--- a/apps/docs/components/Navigation/Navigation.constants.ts
+++ b/apps/docs/components/Navigation/Navigation.constants.ts
@@ -134,17 +134,21 @@ export const menuItems: NavMenu = {
name: 'Deep Dive',
url: undefined,
items: [
- { name: 'Part One: JWTs', url: '/learn/auth-deep-dive/jwts', items: [] },
+ {
+ name: 'Part One: JWTs',
+ url: '/learn/auth-deep-dive/auth-deep-dive-jwts',
+ items: [],
+ },
{
name: 'Part Two: Row Level Security',
- url: '/learn/auth-deep-dive/row-level-security',
+ url: '/learn/auth-deep-dive/auth-row-level-security',
items: [],
},
- { name: 'Part Three: Policies', url: '/learn/auth-deep-dive/policies', items: [] },
- { name: 'Part Four: GoTrue', url: '/learn/auth-deep-dive/gotrue', items: [] },
+ { name: 'Part Three: Policies', url: '/learn/auth-deep-dive/auth-policies', items: [] },
+ { name: 'Part Four: GoTrue', url: '/learn/auth-deep-dive/auth-gotrue', items: [] },
{
name: 'Part Five: Google OAuth',
- url: '/learn/auth-deep-dive/google-oauth',
+ url: '/learn/auth-deep-dive/auth-google-oauth',
items: [],
},
],
diff --git a/apps/docs/docs/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/docs/guides/auth/auth-helpers/nextjs.mdx
index 6743884e577..581c6ec5f37 100644
--- a/apps/docs/docs/guides/auth/auth-helpers/nextjs.mdx
+++ b/apps/docs/docs/guides/auth/auth-helpers/nextjs.mdx
@@ -179,7 +179,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
## Client-side data fetching with RLS
-For [row level security](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security) to work properly when fetching data client-side, you need to make sure to use the `supabaseClient` from the `useSupabaseClient` hook and only run your query once the user is defined client-side in the `useUser()` hook:
+For [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) to work properly when fetching data client-side, you need to make sure to use the `supabaseClient` from the `useSupabaseClient` hook and only run your query once the user is defined client-side in the `useUser()` hook:
```jsx lines=10-17
import { Auth, ThemeSupa } from '@supabase/auth-ui-react'
@@ -263,7 +263,7 @@ export const getServerSideProps = async (ctx) => {
## Server-side data fetching with RLS
-You can use the server supabase client to run [row level security](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security) authenticated queries server-side:
+You can use the server supabase client to run [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) authenticated queries server-side:
<Tabs
scrollable
@@ -779,44 +779,44 @@ export const config = {
### Migrating to v0.4.X and supabase-js v2
-- With the update to `supabase-js` v2 the `auth` API routes are no longer required, therefore you can go ahead and delete your `auth` directory under the `/pages/api/` directory. Please refer to the [v2 migration guide](https://supabase.com/docs/reference/javascript/upgrade-guide) for the full set of changes within supabase-js.
+With the update to `supabase-js` v2 the `auth` API routes are no longer required, therefore you can go ahead and delete your `auth` directory under the `/pages/api/` directory. Please refer to the [v2 migration guide](/docs/reference/javascript/upgrade-guide) for the full set of changes within supabase-js.
-- The `/api/auth/logout` API route has been removed, please use the `signout` method instead:
+The `/api/auth/logout` API route has been removed, please use the `signout` method instead:
- ```jsx
- <button
- onClick={async () => {
- await supabaseClient.auth.signOut()
- router.push('/')
- }}
- >
- Logout
- </button>
- ```
+```jsx
+<button
+ onClick={async () => {
+ await supabaseClient.auth.signOut()
+ router.push('/')
+ }}
+>
+ Logout
+</button>
+```
-- The `supabaseClient` and `supabaseServerClient` have been removed in favor of the `createBrowserSupabaseClient` and `createServerSupabaseClient` methods. This allows you to provide the CLI-generated types to the client:
+The `supabaseClient` and `supabaseServerClient` have been removed in favor of the `createBrowserSupabaseClient` and `createServerSupabaseClient` methods. This allows you to provide the CLI-generated types to the client:
- ```tsx
- // client-side
- import type { Database } from 'types_db'
- const [supabaseClient] = useState(() => createBrowserSupabaseClient<Database>())
+```tsx
+// client-side
+import type { Database } from 'types_db'
+const [supabaseClient] = useState(() => createBrowserSupabaseClient<Database>())
- // server-side API route
- import type { NextApiRequest, NextApiResponse } from 'next'
- import type { Database } from 'types_db'
+// server-side API route
+import type { NextApiRequest, NextApiResponse } from 'next'
+import type { Database } from 'types_db'
- export default async (req: NextApiRequest, res: NextApiResponse) => {
- const supabaseServerClient = createServerSupabaseClient<Database>({
- req,
- res,
- })
- const {
- data: { user },
- } = await supabaseServerClient.auth.getUser()
+export default async (req: NextApiRequest, res: NextApiResponse) => {
+ const supabaseServerClient = createServerSupabaseClient<Database>({
+ req,
+ res,
+ })
+ const {
+ data: { user },
+ } = await supabaseServerClient.auth.getUser()
- res.status(200).json({ name: user?.name ?? '' })
- }
- ```
+ res.status(200).json({ name: user?.name ?? '' })
+}
+```
- The `UserProvider` has been replaced by the `SessionContextProvider`. Make sure to wrap your `pages/_app.js` componenent with the `SessionContextProvider`. Then, throughout your application you can use the `useSessionContext` hook to get the `session` and the `useSupabaseClient` hook to get an authenticated `supabaseClient`.
- The `useUser` hook now returns the `user` object or `null`.
diff --git a/apps/docs/docs/guides/auth/auth-helpers/remix.mdx b/apps/docs/docs/guides/auth/auth-helpers/remix.mdx
index 6a914eee699..5a644521a4f 100644
--- a/apps/docs/docs/guides/auth/auth-helpers/remix.mdx
+++ b/apps/docs/docs/guides/auth/auth-helpers/remix.mdx
@@ -438,7 +438,7 @@ Given this Remix `<Form />` component.
>
<TabPanel id="js" label="JavaScript">
-Any of the [supported authentication strategies from `supabase-js`](https://supabase.com/docs/reference/javascript/auth-signup) will work server-side. This is how you would handle simple `email` and `password` auth.
+Any of the [supported authentication strategies from `supabase-js`](/docs/reference/javascript/auth-signup) will work server-side. This is how you would handle simple `email` and `password` auth.
```jsx
export const action = async ({ request }) => {
@@ -470,7 +470,7 @@ export const action = async ({ request }) => {
</TabPanel>
<TabPanel id="ts" label="TypeScript">
-Any of the [supported authentication strategies from `supabase-js`](https://supabase.com/docs/reference/javascript/auth-signup) will work server-side. This is how you would handle simple `email` and `password` auth.
+Any of the [supported authentication strategies from `supabase-js`](/docs/reference/javascript/auth-signup) will work server-side. This is how you would handle simple `email` and `password` auth.
```jsx
export const action: ActionFunction = async ({
@@ -516,7 +516,7 @@ export const action: ActionFunction = async ({
>
<TabPanel id="js" label="JavaScript">
-Any of the [supported authentication strategies from `supabase-js`](https://supabase.com/docs/reference/javascript/auth-signinwithpassword) will work server-side. This is how you would handle simple `email` and `password` auth.
+Any of the [supported authentication strategies from `supabase-js`](/docs/reference/javascript/auth-signinwithpassword) will work server-side. This is how you would handle simple `email` and `password` auth.
```jsx
export const action = async ({ request }) => {
@@ -548,7 +548,7 @@ export const action = async ({ request }) => {
</TabPanel>
<TabPanel id="ts" label="TypeScript">
-Any of the [supported authentication strategies from `supabase-js`](https://supabase.com/docs/reference/javascript/auth-signinwithpassword) will work server-side. This is how you would handle simple `email` and `password` auth.
+Any of the [supported authentication strategies from `supabase-js`](/docs/reference/javascript/auth-signinwithpassword) will work server-side. This is how you would handle simple `email` and `password` auth.
```jsx
export const action: ActionFunction = async ({
diff --git a/apps/docs/docs/guides/auth/auth-helpers/sveltekit.mdx b/apps/docs/docs/guides/auth/auth-helpers/sveltekit.mdx
index 91883170394..f8267ea371c 100644
--- a/apps/docs/docs/guides/auth/auth-helpers/sveltekit.mdx
+++ b/apps/docs/docs/guides/auth/auth-helpers/sveltekit.mdx
@@ -208,7 +208,7 @@ You can now determine if a user is authenticated on the client-side by checking
## Client-side data fetching with RLS
-For [row level security](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security) to work properly when fetching data client-side, you need to make sure to import the `{ supabaseClient }` from `$lib/db` and only run your query once the user is defined client-side in `$page.data.session`:
+For [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) to work properly when fetching data client-side, you need to make sure to import the `{ supabaseClient }` from `$lib/db` and only run your query once the user is defined client-side in `$page.data.session`:
```html
<script>
@@ -246,7 +246,7 @@ For [row level security](https://supabase.com/docs/learn/auth-deep-dive/auth-row
<pre>{JSON.stringify(user, null, 2)}</pre>
```
-For [row level security](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security) to work in a server environment, you need to use the `withAuth` helper to check if the user is authenticated. The helper extends the event with `session` and `getSupabaseClient()`:
+For [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) to work in a server environment, you need to use the `withAuth` helper to check if the user is authenticated. The helper extends the event with `session` and `getSupabaseClient()`:
```ts title=src/routes/profile/+page.ts
import type { PageLoad } from './$types';
diff --git a/apps/docs/docs/guides/database/testing.mdx b/apps/docs/docs/guides/database/testing.mdx
index 0fcda6c6c12..1301042e379 100644
--- a/apps/docs/docs/guides/database/testing.mdx
+++ b/apps/docs/docs/guides/database/testing.mdx
@@ -66,5 +66,5 @@ Result: PASS
## More resource
-- [pgTAP extension](https://supabase.com/docs/guides/database/extensions/pgtap)
+- [pgTAP extension](/docs/guides/database/extensions/pgtap)
- Official [pgTAP documentation](https://pgtap.org/)
diff --git a/apps/docs/docs/guides/integrations/clerk.mdx b/apps/docs/docs/guides/integrations/clerk.mdx
index ee508d789f2..e766660c74f 100644
--- a/apps/docs/docs/guides/integrations/clerk.mdx
+++ b/apps/docs/docs/guides/integrations/clerk.mdx
@@ -42,7 +42,7 @@ After the key is added, click the **Apply Changes** button to save your template
## Step 3: Configure client
-The next step is to configure your client. Supabase provides an official [JavaScript/TypeScript client library](https://github.com/supabase/supabase-js) and there are [libraries in other languages](https://supabase.com/docs/reference/javascript/installing) built by the community.
+The next step is to configure your client. Supabase provides an official [JavaScript/TypeScript client library](https://github.com/supabase/supabase-js) and there are [libraries in other languages](/docs/reference/javascript/installing) built by the community.
This guide will use a Next.js project with the JS client as an example, but the mechanism of setting the authentication token should be similar with other libraries and frameworks.
@@ -64,7 +64,7 @@ To get the ones needed for Supabase, navigate to the same Settings > API page as
![Supabase keys](/docs/img/guides/integrations/clerk/06_supabase-keys.png)
-**Note**: It is recommended that you enable [Row Level Security](https://supabase.com/docs/guides/auth/row-level-security) (RLS) for your database tables and configure access policies as needed.
+**Note**: It is recommended that you enable [Row Level Security](/docs/guides/auth/row-level-security) (RLS) for your database tables and configure access policies as needed.
After setting those three environment variables, you should be able to start up your application development server.
diff --git a/apps/docs/docs/guides/integrations/dashibase.mdx b/apps/docs/docs/guides/integrations/dashibase.mdx
index b3ee0e76909..fb96230bcd9 100644
--- a/apps/docs/docs/guides/integrations/dashibase.mdx
+++ b/apps/docs/docs/guides/integrations/dashibase.mdx
@@ -16,13 +16,13 @@ Just so we are on the same page, here are some of the terms we use:
- **Dashboard:** This is the friendly interface that you build on top of your Supabase database using Dashibase.
- **Page:** Each dashboard can have multiple pages. Each page can have multiple blocks of text or tables.
-Now that is out of the way, let's build our customer admin panel.
+Now that is out of the way, let's build our customer admin panel.
(Start your stopwatch!)
## Step 1. Connect Supabase to Dashibase
-First, in Dashibase, go to “Data Sources” via the left sidebar and click on “Connect data source” in the upper-right corner.
+First, in Dashibase, go to “Data Sources” via the left sidebar and click on “Connect data source” in the upper-right corner.
Note: We do not download or store any of your database data.
@@ -36,7 +36,7 @@ Enter your database credentials, which you can find in Supabase under Settings >
Once you have connected your database, you can also control what your team can see and edit in your database via Dashibase. There are usually certain data that you don’t want others to edit or even see (e.g. address, email, identification number).
-Note: If you prefer to restrict access to your database _before_ you connect to Dashibase for security reasons, you can [create a restricted user](https://aws.amazon.com/blogs/database/managing-postgresql-users-and-roles/) via [Supabase's SQL Editor](https://supabase.com/docs/guides/database#the-sql-editor). The slight advantage of doing this in Dashibase is that there is a GUI, which makes it easier to set up the access control (but we understand some developers might find it more secure to restrict the access themselves).
+Note: If you prefer to restrict access to your database _before_ you connect to Dashibase for security reasons, you can [create a restricted user](https://aws.amazon.com/blogs/database/managing-postgresql-users-and-roles/) via [Supabase's SQL Editor](/docs/guides/database#the-sql-editor). The slight advantage of doing this in Dashibase is that there is a GUI, which makes it easier to set up the access control (but we understand some developers might find it more secure to restrict the access themselves).
![Set data access in Dashibase](/docs/img/guides/integrations/dashibase/set-data-access.png)
@@ -50,7 +50,7 @@ Once you are happy with the data access control, you can decide who in your orga
## Step 3. Build your dashboard
-To create a dashboard, go to “Dashboards” via the left sidebar in Dashibase and click on “Create dashboard” in the upper-right corner.
+To create a dashboard, go to “Dashboards” via the left sidebar in Dashibase and click on “Create dashboard” in the upper-right corner.
Here’s where the fun begins. There are many ways to build your dashboards in Dashibase using features such as markdown formatting and slash command.
@@ -62,11 +62,11 @@ Using our Notion-like UI, you can quickly build out your dashboard through typin
![Automatically-generated content for your dashboard](/docs/img/guides/integrations/dashibase/slash-command.gif)
-If you have set up [foreign keys in your Supabase database](https://supabase.com/docs/guides/database/tables#joining-tables-with-foreign-keys), you can easily show data from multiple tables on the table in your Dashibase dashboard. Simply click on the "Columns" button beside the "Filter" button and select the columns you want to show or hide. For this example, we want to show the customers' country and plan price, which are in separate `countries` and `plans` tables.
+If you have set up [foreign keys in your Supabase database](/docs/guides/database/tables#joining-tables-with-foreign-keys), you can easily show data from multiple tables on the table in your Dashibase dashboard. Simply click on the "Columns" button beside the "Filter" button and select the columns you want to show or hide. For this example, we want to show the customers' country and plan price, which are in separate `countries` and `plans` tables.
![Setting up the Customers table](/docs/img/guides/integrations/dashibase/customers-table.png)
-For all the tables in your dashboard, you can rename the column headers, add filter and sort, adjust the column width, and more.
+For all the tables in your dashboard, you can rename the column headers, add filter and sort, adjust the column width, and more.
You can also add text to provide context or instructions for the rest of your team as they are using your dashboard. This saves you the trouble of having your dashboard and documentation in separate places.
@@ -87,7 +87,7 @@ Click on the “Share” button in the upper-right corner of your dashboard to s
![Share dashboard access](/docs/img/guides/integrations/dashibase/share-dashboard.png)
-Now your team can use this customer admin panel to find and update customer information easily!
+Now your team can use this customer admin panel to find and update customer information easily!
P.S. How long did we take? :)
diff --git a/apps/docs/docs/guides/integrations/directus.mdx b/apps/docs/docs/guides/integrations/directus.mdx
index 4b7aebb3b09..4a327340d1d 100644
--- a/apps/docs/docs/guides/integrations/directus.mdx
+++ b/apps/docs/docs/guides/integrations/directus.mdx
@@ -36,7 +36,7 @@ Let's dive into how we actually set up and link these two platforms to create a
## Create a Supabase Project
-As mentioned, while you can [deploy Supabase locally](https://supabase.com/docs/guides/local-development). For the purpose of this guide, we'll use Supabase Cloud:
+As mentioned, while you can [deploy Supabase locally](/docs/guides/cli/local-development). For the purpose of this guide, we'll use Supabase Cloud:
1. Create a **Supabase** account by signing in with GitHub.
2. Give your organization a name (this can be changed later).
diff --git a/apps/docs/docs/guides/integrations/plasmic.mdx b/apps/docs/docs/guides/integrations/plasmic.mdx
index 07d4e0dbf8d..a3396c73be8 100644
--- a/apps/docs/docs/guides/integrations/plasmic.mdx
+++ b/apps/docs/docs/guides/integrations/plasmic.mdx
@@ -6,10 +6,10 @@ description: 'Get started with Supabase and Plasmic, an open-source framework fo
In this guide, we will show you how to build a crowd-sourced Pokemon Pokedex, by connecting **Supabase**, an open source Firebase backend alternative, with **Plasmic**, a visual builder for the web. While many users leverage Plasmic to quickly launch and iterate on landing pages, in this tutorial we’ll show just how powerful Plasmic can be as a general-purpose visual builder for React, which can be used to design and implement fully featured read-write applications.
-You can play with the live demo here:
+You can play with the live demo here:
[https://plasmic-supabase-demo.vercel.app/](https://plasmic-supabase-demo.vercel.app/)
-You can also take a look at the Plasmic project here:
+You can also take a look at the Plasmic project here:
[https://studio.plasmic.app/projects/66RKaSPCwKxYjCfXWHCxn6](https://studio.plasmic.app/projects/66RKaSPCwKxYjCfXWHCxn6)
> You’ll need to enable 3rd-party cookies in your browser for the project to properly load.
@@ -35,7 +35,7 @@ At a high level,
- `name`, `description`, `imageUrl`: This will store the name, description, and imageUrl for each Pokemon.
- `inserted_at` : This will be an automatically populated column, set to when the row was first inserted.
-> Note: In this tutorial we’ve turned off “[Row Level Security (RLS)](https://supabase.com/docs/guides/auth/row-level-security)”. In practice, you will want to create policies that restrict who gets to create, edit, and delete posts. By turning this off, any user can modify the database without restrictions.
+> Note: In this tutorial we’ve turned off “[Row Level Security (RLS)](/docs/guides/auth/row-level-security)”. In practice, you will want to create policies that restrict who gets to create, edit, and delete posts. By turning this off, any user can modify the database without restrictions.
![create-table-supabase](/docs/img/guides/integrations/plasmic/create-table-supabase-02.png)
@@ -77,7 +77,7 @@ If you pre-populated the database in Step 1. you should see the following homepa
Now let’s try to make some additions! The code base is currently configured to a read-only copy of the Plasmic project. Let’s make an editable copy first.
-Open the default starter Plasmic project here:
+Open the default starter Plasmic project here:
[https://studio.plasmic.app/projects/66RKaSPCwKxYjCfXWHCxn6](https://studio.plasmic.app/projects/66RKaSPCwKxYjCfXWHCxn6)
![clone-project-plasmic](/docs/img/guides/integrations/plasmic/clone-project-plasmic-04.png)
diff --git a/apps/docs/docs/guides/integrations/sequin.mdx b/apps/docs/docs/guides/integrations/sequin.mdx
index 3aac1434810..a5600c862d1 100644
--- a/apps/docs/docs/guides/integrations/sequin.mdx
+++ b/apps/docs/docs/guides/integrations/sequin.mdx
@@ -62,7 +62,7 @@ To ensure the right users can access the synced schema Sequin manages, you'll ne
## Step 3: Configure the Supabase Client
-Finally, you'll need to define a new [Supabase client](https://supabase.com/docs/reference/javascript/initializing#api-schemas) in your application to access your synced schema. In the file where you initialized your Supabase client, define a new client with a `schema` parameter:
+Finally, you'll need to define a new [Supabase client](/docs/reference/javascript/initializing#api-schemas) in your application to access your synced schema. In the file where you initialized your Supabase client, define a new client with a `schema` parameter:
```javascript
export const supabase_schema = createClient(
diff --git a/apps/docs/docs/guides/migrations/firebase-auth.mdx b/apps/docs/docs/guides/migrations/firebase-auth.mdx
index 6b0ed0335a6..02bd71ee25f 100644
--- a/apps/docs/docs/guides/migrations/firebase-auth.mdx
+++ b/apps/docs/docs/guides/migrations/firebase-auth.mdx
@@ -86,5 +86,5 @@ For more advanced migrations, including the use of a middleware server component
## Resources
- [Supabase vs Firebase](https://supabase.com/alternatives/supabase-vs-firebase)
-- [Firestore Data Migration](https://supabase.com/docs/guides/migrations/firestore-data)
-- [Firestore Storage Migration](https://supabase.com/docs/guides/migrations/firebase-storage)
+- [Firestore Data Migration](/docs/guides/migrations/firestore-data)
+- [Firestore Storage Migration](/docs/guides/migrations/firebase-storage)
diff --git a/apps/docs/docs/guides/migrations/firebase-storage.mdx b/apps/docs/docs/guides/migrations/firebase-storage.mdx
index 754a68dbc3e..7e5ff192e47 100644
--- a/apps/docs/docs/guides/migrations/firebase-storage.mdx
+++ b/apps/docs/docs/guides/migrations/firebase-storage.mdx
@@ -13,9 +13,11 @@ Supabase provides several [tools](https://github.com/supabase-community/firebase
## Set up the migration tool {#set-up-migration-tool}
1. Clone the [firebase-to-supabase](https://github.com/supabase-community/firebase-to-supabase) repository:
- ```bash
- git clone https://github.com/supabase-community/firebase-to-supabase.git
- ```
+
+```bash
+git clone https://github.com/supabase-community/firebase-to-supabase.git
+```
+
1. In the `/storage` directory, rename [supabase-keys-sample.js](https://github.com/supabase-community/firebase-to-supabase/blob/main/storage/supabase-keys-sample.js) to `supabase-keys.js`.
1. Go to your Supabase project's [API settings](https://app.supabase.com/project/_/settings/api) in the Dashboard.
1. Copy the **Project URL** and update the `SUPABASE_URL` value in `supabase-keys.js`.
@@ -60,5 +62,5 @@ If the bucket doesn't exist, it's created as a `non-public` bucket. You must set
## Resources
- [Supabase vs Firebase](https://supabase.com/alternatives/supabase-vs-firebase)
-- [Firestore Data Migration](https://supabase.com/docs/guides/migrations/firestore-data)
-- [Firebase Auth Migration](https://supabase.com/docs/guides/migrations/firebase-auth)
+- [Firestore Data Migration](/docs/guides/migrations/firestore-data)
+- [Firebase Auth Migration](/docs/guides/migrations/firebase-auth)
diff --git a/apps/docs/docs/guides/migrations/firestore-data.mdx b/apps/docs/docs/guides/migrations/firestore-data.mdx
index c99d5411e5f..4f270329a4d 100644
--- a/apps/docs/docs/guides/migrations/firestore-data.mdx
+++ b/apps/docs/docs/guides/migrations/firestore-data.mdx
@@ -206,5 +206,5 @@ The result is two separate JSON files:
## Resources
- [Supabase vs Firebase](https://supabase.com/alternatives/supabase-vs-firebase)
-- [Firestore Storage Migration](https://supabase.com/docs/guides/migrations/firebase-storage)
-- [Firebase Auth Migration](https://supabase.com/docs/guides/migrations/firebase-auth)
+- [Firestore Storage Migration](/docs/guides/migrations/firebase-storage)
+- [Firebase Auth Migration](/docs/guides/migrations/firebase-auth)
diff --git a/apps/docs/docs/guides/storage-cdn.mdx b/apps/docs/docs/guides/storage-cdn.mdx
index c4b918880fe..7e3fdbd7b7e 100644
--- a/apps/docs/docs/guides/storage-cdn.mdx
+++ b/apps/docs/docs/guides/storage-cdn.mdx
@@ -17,9 +17,9 @@ Aside from performance, CDNs also help with security and availability by mitigat
## Cache duration
-By default, assets are cached both in the CDN and in the user’s browser for 1 hour. After this, the CDN nodes ping the storage server to see if an object has been updated.
+By default, assets are cached both in the CDN and in the user's browser for 1 hour. After this, the CDN nodes ping the storage server to see if an object has been updated.
-You can modify this cache time when you are [uploading](https://supabase.com/docs/reference/javascript/storage-from-upload) or [updating](https://supabase.com/docs/reference/javascript/storage-from-update) an object by modifying the `cacheControl` parameter.
+You can modify this cache time when you are [uploading](/docs/reference/javascript/storage-from-upload) or [updating](/docs/reference/javascript/storage-from-update) an object by modifying the `cacheControl` parameter.
If you expect the object to not change at a given URL, setting a longer cache duration is preferable.
diff --git a/apps/docs/docs/guides/with-nextjs.mdx b/apps/docs/docs/guides/with-nextjs.mdx
index 030b1d41594..3f7b7b88d52 100644
--- a/apps/docs/docs/guides/with-nextjs.mdx
+++ b/apps/docs/docs/guides/with-nextjs.mdx
@@ -86,7 +86,7 @@ You can find the full contents of this file [here](https://raw.githubusercontent
Next.js is a highly versatile framework offering pre-rendering at build time (SSG), server-side rendering at request time (SSR), API routes, and middleware edge-functions.
-It can be challenging to authenticate your users in all these different environments, that's why we've created the [Supabase Auth Helpers](https://supabase.com/docs/guides/auth/auth-helpers/nextjs) to make user management and data fetching within Next.js as easy as possible.
+It can be challenging to authenticate your users in all these different environments, that's why we've created the [Supabase Auth Helpers](/docs/guides/auth/auth-helpers/nextjs) to make user management and data fetching within Next.js as easy as possible.
Install the auth helpers for React and Next.js
@@ -160,7 +160,7 @@ See the [Auth Helpers docs](/docs/guides/auth/auth-helpers/nextjs#usage-with-typ
#### Supabase Auth UI
-We can use the [Supabase Auth UI](https://supabase.com/docs/guides/auth/auth-helpers/auth-ui) a pre-built React component for authenticating users via OAuth, email, and magic links.
+We can use the [Supabase Auth UI](/docs/guides/auth/auth-helpers/auth-ui) a pre-built React component for authenticating users via OAuth, email, and magic links.
Install the Supabase Auth UI for React
@@ -728,8 +728,8 @@ return (
At this stage you have a fully functional application!
- See the complete [example on GitHub](https://github.com/supabase/supabase/tree/master/examples/user-management/nextjs-ts-user-management) and deploy it to Vercel.
-- Explore the [pre-built Auth UI for React](https://supabase.com/docs/guides/auth/auth-helpers/auth-ui).
-- Explore the [Auth Helpers for Next.js](https://supabase.com/docs/guides/auth/auth-helpers/nextjs).
+- Explore the [pre-built Auth UI for React](/docs/guides/auth/auth-helpers/auth-ui).
+- Explore the [Auth Helpers for Next.js](/docs/guides/auth/auth-helpers/nextjs).
- Explore the [Supabase Cache Helpers](https://github.com/psteinroe/supabase-cache-helpers).
- See the [Next.js Subscription Payments Starter](https://github.com/vercel/nextjs-subscription-payments) template on GitHub.
- Got a question? [Ask here](https://github.com/supabase/supabase/discussions).
diff --git a/apps/docs/docs/learn/auth-deep-dive/jwts.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-deep-dive-jwts.mdx
similarity index 100%
rename from apps/docs/docs/learn/auth-deep-dive/jwts.mdx
rename to apps/docs/docs/learn/auth-deep-dive/auth-deep-dive-jwts.mdx
diff --git a/apps/docs/docs/learn/auth-deep-dive/google-oauth.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-google-oauth.mdx
similarity index 100%
rename from apps/docs/docs/learn/auth-deep-dive/google-oauth.mdx
rename to apps/docs/docs/learn/auth-deep-dive/auth-google-oauth.mdx
diff --git a/apps/docs/docs/learn/auth-deep-dive/gotrue.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-gotrue.mdx
similarity index 100%
rename from apps/docs/docs/learn/auth-deep-dive/gotrue.mdx
rename to apps/docs/docs/learn/auth-deep-dive/auth-gotrue.mdx
diff --git a/apps/docs/docs/learn/auth-deep-dive/policies.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-policies.mdx
similarity index 100%
rename from apps/docs/docs/learn/auth-deep-dive/policies.mdx
rename to apps/docs/docs/learn/auth-deep-dive/auth-policies.mdx
diff --git a/apps/docs/docs/learn/auth-deep-dive/row-level-security.mdx b/apps/docs/docs/learn/auth-deep-dive/auth-row-level-security.mdx
similarity index 100%
rename from apps/docs/docs/learn/auth-deep-dive/row-level-security.mdx
rename to apps/docs/docs/learn/auth-deep-dive/auth-row-level-security.mdx
diff --git a/apps/docs/docs/reference/auth.mdx b/apps/docs/docs/reference/auth.mdx
index b471652b24a..348d0858cd3 100644
--- a/apps/docs/docs/reference/auth.mdx
+++ b/apps/docs/docs/reference/auth.mdx
@@ -19,4 +19,4 @@ GoTrue is an open-source API written in Golang, that acts as a self-standing API
- [Source Code](https://github.com/supabase/gotrue)
- [Known bugs and issues](https://github.com/supabase/gotrue/issues)
-- [Auth Guides](https://supabase.com/docs/guides/auth)
+- [Auth Guides](/docs/guides/auth)
diff --git a/apps/docs/docs/reference/cli.mdx b/apps/docs/docs/reference/cli.mdx
index 4df55a9482a..5bfbe7e543a 100644
--- a/apps/docs/docs/reference/cli.mdx
+++ b/apps/docs/docs/reference/cli.mdx
@@ -10,13 +10,13 @@ hide_table_of_contents: true
The Supabase CLI provides tools to develop your project locally and deploy to the Supabase Platform.
The CLI is still under development, but it contains all the functionality for working with your Supabase projects and the Supabase Platform.
-- Run Supabase locally: [`supabase start`](https://supabase.com/docs/reference/cli/usage#supabase-start)
-- Manage database migrations: [`supabase migration`](https://supabase.com/docs/reference/cli/usage#supabase-migration)
-- CI/CD for releasing to production: [`supabase db push`](https://supabase.com/docs/reference/cli/usage#supabase-db-push)
-- Manage your Supabase projects: [`supabase projects`](https://supabase.com/docs/reference/cli/usage#supabase-projects)
-- Generate types directly from your database schema: [`supabase gen types`](https://supabase.com/docs/reference/cli/usage#supabase-gen)
+- Run Supabase locally: [`supabase start`](/docs/reference/cli/usage#supabase-start)
+- Manage database migrations: [`supabase migration`](/docs/reference/cli/usage#supabase-migration)
+- CI/CD for releasing to production: [`supabase db push`](/docs/reference/cli/usage#supabase-db-push)
+- Manage your Supabase projects: [`supabase projects`](/docs/reference/cli/usage#supabase-projects)
+- Generate types directly from your database schema: [`supabase gen types`](/docs/reference/cli/usage#supabase-gen)
- A [community-supported GitHub Action](https://github.com/lyqht/generate-supabase-db-types-github-action) to generate TypeScript types
-- Shell autocomplete: [`supabase completion`](https://supabase.com/docs/reference/cli/usage#supabase-completion)
+- Shell autocomplete: [`supabase completion`](/docs/reference/cli/usage#supabase-completion)
- A [community-supported Fig autocomplete spec](https://fig.io/manual/supabase) for macOS terminal
## Additional Links
diff --git a/apps/docs/docs/reference/storage.mdx b/apps/docs/docs/reference/storage.mdx
index 028ae289b59..2ee380acae1 100644
--- a/apps/docs/docs/reference/storage.mdx
+++ b/apps/docs/docs/reference/storage.mdx
@@ -24,5 +24,5 @@ Read [this post](https://supabase.com/blog/supabase-storage) on why we decided t
- [Source Code](https://github.com/supabase/storage-api)
- [Known bugs and issues](https://github.com/supabase/storage-js/issues)
-- [Storage Guides](https://supabase.com/docs/guides/storage)
+- [Storage Guides](/guides/storage)
- [OpenAPI Docs](https://supabase.github.io/storage-api/)