Your OAuth is redirecting to https://emails.tasknova.io/dashboard but getting a 404 error because your hosting platform isn't configured for client-side routing.
Supabase Dashboard:
- Go to https://supabase.com/dashboard
- Select project:
vkxkwdrkcnsytveuteac - Go to Authentication > URL Configuration
- Set Site URL:
https://emails.tasknova.io - Add Redirect URLs:
https://emails.tasknova.io/dashboardhttps://emails.tasknova.io/https://emails.tasknova.io/loginhttps://emails.tasknova.io/gmail-callback
Google Cloud Console:
- Go to https://console.cloud.google.com/
- Find your OAuth 2.0 Client ID
- Add Authorized redirect URIs:
https://emails.tasknova.io/dashboardhttps://emails.tasknova.io/gmail-callback
I've created these configuration files for you:
vercel.json- For Vercel hostingpublic/_redirects- For Netlify hostingpublic/_headers- For Netlify security headers
For Vercel:
# Install Vercel CLI if not installed
npm i -g vercel
# Deploy
vercel --prodFor Netlify:
# Build your project
npm run build
# Deploy the dist folder to Netlify
# Or connect your GitHub repo to Netlify for automatic deploymentsFor Cloudflare Pages:
- Connect your GitHub repo to Cloudflare Pages
- Set Build command:
npm run build - Set Build output directory:
dist
- Go to
https://emails.tasknova.io - Click "Continue with Google"
- Complete OAuth flow
- Should redirect to
https://emails.tasknova.io/dashboardsuccessfully
- Tells Vercel to serve
index.htmlfor all routes - Adds security headers
- Enables client-side routing
- Tells Netlify to serve
index.htmlfor all routes - Enables client-side routing
- Adds security headers for Netlify
- Protects against clickjacking and other attacks
React Router uses client-side routing, but your hosting platform was trying to find actual files at /dashboard, /login, etc. These files don't exist because React Router handles routing in the browser.
The configuration files tell your hosting platform to serve index.html for all routes, letting React Router handle the routing.
After deployment:
- β OAuth redirects work properly
- β No more 404 errors
- β All routes work correctly
- β Security headers are in place
- Check hosting platform logs for deployment errors
- Verify DNS settings point to correct hosting service
- Test with simple route like
/first - Clear browser cache and try again
- Check SSL certificate is properly configured
Status: π§ Ready for deployment Priority: High - Authentication broken