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) tohttp://localhost:3000.
If you publish your Rocket app without changing this, users will be sent to a broken page.
Update the redirect URL in Supabase
Open your Supabase project
Log in to Supabase and select the project connected to your Rocket app.
Go to authentication settings
In the left sidebar, click Authentication, then open the URL Configuration tab.



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.apphttps://yourdomain.com
This setting applies to:
- Email confirmation links.
- Password reset links.
- Magic links (if enabled).
Troubleshooting
Link still goes to localhost
Clicking the link openslocalhost: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.
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.

