Configuring Environment-Specific Redirect URLs in Next.js with Supabase Auth
I am developing a Next.js application with Supabase authentication. In my Supabase settings, the 'Site URL' is set to https://some-production-url.com for the production environment. However, for local development, I need the redirect URL to point to localhost:3000 instead. Currently, even during local development, the application redirects to the production URL. How can I configure different redirect URLs for the production and local environments?
Current Configuration:
Supabase 'Site URL' is set to https://some-production-url.com.
Authentication setup in my Next.js project:
Read full thread here due to limited characters:
https://stackoverflow.com/questions/77757052/configuring-environment-specific-redirect-urls-in-next-js-with-supabase-auth
Stack Overflow
Configuring Environment-Specific Redirect URLs in Next.js with Supa...
I am developing a Next.js application with Supabase authentication. In my Supabase settings, the 'Site URL' is set to https://some-production-url.com for the production environment. However, for lo...
2 Replies