The URL catzwowmxluzwbhdyhnf.supabase.co appears in the Google OAuth sign-in dialog because that's your default Supabase project URL.
- Location: https://supabase.com/dashboard → Settings → API → Custom Domains
- Action: Configure a custom domain (e.g.,
auth.illinihunt.org) - This is the most important step - you must set up the custom domain first
- Location: https://vercel.com/dashboard → Project Settings → Environment Variables
- Variable:
VITE_SUPABASE_URL - Current:
https://catzwowmxluzwbhdyhnf.supabase.co - Change to: Your custom domain (e.g.,
https://auth.illinihunt.org) - After changing: Redeploy your application
- File:
.env.local(in project root) - Variable:
VITE_SUPABASE_URL - Change to match your custom domain
- Location: https://console.cloud.google.com → APIs & Services → Credentials
- Action: Update "Authorized redirect URIs"
- Remove:
https://catzwowmxluzwbhdyhnf.supabase.co/auth/v1/callback - Add:
https://auth.illinihunt.org/auth/v1/callback(your custom domain)
- File:
index.html(line 9) - Current:
<link rel="preconnect" href="https://catzwowmxluzwbhdyhnf.supabase.co" crossorigin />
- Change to:
<link rel="preconnect" href="https://auth.illinihunt.org" crossorigin />
- Note: This is a performance optimization, but should match your custom domain
- File:
vercel.json(line 44) - Current:
connect-src 'self' https://*.supabase.co wss://*.supabase.co - Consider adding your custom domain:
"connect-src 'self' https://*.supabase.co wss://*.supabase.co https://auth.illinihunt.org wss://auth.illinihunt.org"
These files don't affect functionality but should be updated for clarity:
CLAUDE.md- Line 19 (environment variable example)README.md- If it contains the Supabase URLQUICKSTART.md- If it contains the Supabase URLCONTRIBUTING.md- If it contains the Supabase URL
These files automatically use the environment variable:
- ✅
src/lib/supabase.ts- Usesimport.meta.env.VITE_SUPABASE_URL - ✅
src/contexts/AuthContext.tsx- Uses Supabase client - ✅ All authentication code - Works automatically
- Set up custom domain in Supabase Dashboard
- Update
VITE_SUPABASE_URLin Vercel environment variables - Update
VITE_SUPABASE_URLin local.env.local - Update Google OAuth redirect URI in Google Cloud Console
- Update
index.htmlpreconnect link - (Optional) Update
vercel.jsonCSP header - Redeploy application on Vercel
- Test authentication in all environments
- DNS Propagation: Custom domain DNS changes can take up to 48 hours
- SSL Certificate: Supabase automatically provisions SSL for custom domains (may take a few hours)
- Google Cache: OAuth redirect URI changes take 5-10 minutes to propagate
- Test Thoroughly: Test authentication after every change
For detailed step-by-step instructions, see: docs/setup/CUSTOM_DOMAIN_SETUP.md
- Supabase Project ID:
catzwowmxluzwbhdyhnf - Current URL:
https://catzwowmxluzwbhdyhnf.supabase.co - Target Custom Domain: (To be configured)