In this guide, you’ll learn how to:
  • Find the redirect URL setting in Supabase.
  • Replace the default localhost link with your live app URL.
  • Test confirmation, reset, and magic links.

Before you begin

You’ll need:
  • A Supabase account with an active project.
  • Your Supabase account connected to Rocket.
  • Your Rocket app’s live preview link or custom domain.

Why update redirect URLs

By default, Supabase sends links such as email confirmations or password resets to http://localhost:3000.
If you publish your Rocket app without updating this setting, those links will send users to a broken page.
Updating this URL ensures new users and returning users land in your actual app after clicking a link.

Update the redirect URL in Supabase

1

Open your Supabase project

Log in to Supabase and select the project linked to your Rocket app.
2

Go to authentication settings

In the left sidebar, click Authentication, then open the URL Configuration tab.
Supabase URL configuration darkSupabase URL configuration light

Supabase Authentication settings showing URL Configuration tab and Site URL field

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.netlify.app
  • https://yourdomain.com
4

Save changes

Click Save at the bottom of the page.
5

Test your links

Sign up with a test email and check the confirmation link. It should open your live Rocket app instead of a localhost page.
This applies to:
  • Email confirmation links.
  • Password reset links.
  • Magic links (if enabled).

Troubleshooting

What you’ll see:
After clicking the link, your browser opens localhost:3000 instead of your live app.
How to fix it:
  • Confirm that the Site URL in Supabase is set to your app’s live URL, including https://.
  • Remove any trailing slashes from the URL, as they can cause redirect issues.

What you’ll see:
The link loads your app, but the user is not authenticated.
How to fix it:
  • Ensure the redirect URL in Supabase matches your app’s domain exactly, including protocol (https://) and without a trailing slash.
  • Make sure your Rocket app is connected to the same Supabase project where the redirect URL is set.

Links that land where they should

Your Supabase links now take users straight into your live Rocket app.
Need help?
Email us at support@rocket.new or join our Discord community.