Add Google OAuth to Supabase project
Enable provider, set redirect URLs, call signInWithOAuth.
Fails & Fixes
Real failures hit while building with AI tools, paired with verified fixes. Avoid the trap before you fall in.
Enable provider, set redirect URLs, call signInWithOAuth.
Enable extension, create vector column.
Use .inputValidator((d) => Schema.parse(d)).
Mark file as do-not-edit in project rules.
Invalidate the parent list query after the detail mutation.
Missing <Outlet/> in _authenticated layout.
persistSession flag was off.
Add Access-Control-Allow-Origin and OPTIONS handler.
Return a Response with a TransformStream.
Step-by-step replacement of Routes/Route with file-based routing.
Forgot WITH CHECK on the insert policy.
Body parser ran before raw-body capture.
Variables without the VITE_ prefix never reach the browser bundle.
Dialog stayed mounted across routes.
Cursor and Lovable rebuilt the wrong file after a refactor; isolating the import map fixed it.
Use @theme inline mapping for shadcn token vars.
Forgot @source directive.
Default 30s timeout; switched to streaming.
Clear sb-prefixed localStorage keys and reload.
Allow public read of non-PII columns only.