Skip to main content
Fix broken Supabase links. This guide covers locating the redirect URL setting in Supabase, replacing the default localhost link with your live app URL, and testing confirmation, reset, and magic links.You need:
  • A Supabase account with an active project.
  • Your Supabase account connected to Rocket.
  • Your app’s live preview link or custom domain.

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.
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 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.Supabase authentication settings showing the URL Configuration tab with the 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 using a test email and open the confirmation link. It should take you to your live Rocket app, not localhost.
This setting applies to:
  • Email confirmation links.
  • Password reset links.
  • Magic links (if enabled).

Troubleshooting

Clicking the link opens localhost:3000 instead of your deployed 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.
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.