> ## Documentation Index
> Fetch the complete documentation index at: https://dhiwisepvtltd-5e04e6a4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Redirect URLs

> Configure Supabase auth redirect URLs for your Rocket.new app so magic links, password resets, and OAuth callbacks return users to the right route.

> [!NOTE]
>
> By default, Supabase sends confirmation, password reset, and magic links to `http://localhost:3000`. This guide covers updating the Site URL in Supabase to your live app so those links work correctly for real users.

## Why you need to update redirect URLs

By default, Supabase sends all user links (confirmation, reset, and magic) to `http://localhost:3000`.
If you publish your Rocket app without changing this, users will be sent to a broken page.

> [!WARNING]
>
> Updating this URL ensures users return to your live app after clicking any Supabase link.

## Update the redirect URL in Supabase

**1. Open your Supabase project**

Log in to [Supabase](https://supabase.com/) and select the project connected to your Rocket app.

**2. Go to authentication settings**

In the left sidebar, click **Authentication**, then open the **URL Configuration** tab.

![Supabase authentication settings showing the URL Configuration tab with the Site URL field.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/supabase/redirect-urls/supabase-redirect-url-light.webp)

![Supabase authentication settings showing the URL Configuration tab with the Site URL field.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/supabase/redirect-urls/supabase-redirect-url-dark.webp)

Open URL Configuration under Authentication

**3. Replace the Site URL**

Find the **Site URL** field. Replace `http://localhost:3000` with your app's live URL.
Examples:

* `https://your-app-name.builtwithrocket.new`
* `https://yourdomain.com`

**4. Save changes**

Click **Save** at the bottom of the page.

**5. Test your links**

Sign up using a test email and open the confirmation link. It should take you to your live Rocket app, not `localhost`.

> [!NOTE]
>
> This setting applies to:
>
> * Email confirmation links.
> * Password reset links.
> * Magic links (if enabled).

## Troubleshooting

### Link still goes to localhost

Clicking the link opens `localhost:3000` instead of your live app.

* Double-check that the **Site URL** field in Supabase is set to your live URL and begins with `https://`.
* Remove any trailing slashes. They can interfere with redirects.

### Link opens the app, but user is not logged in

The link loads your app, but the user is not authenticated.

* Make sure the redirect URL exactly matches your app's domain, including protocol (`https://`) and no trailing slash.
* Confirm your Rocket app is connected to the same Supabase project where the URL is set.

> **Links that land where they should**
>
> Your Supabase links now take users straight into your live Rocket app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.