Fix: Supabase RLS + API error handling#615
Conversation
|
@Meera2906 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
There was a problem hiding this comment.
Thanks for your first PR on DevTrack! 🎉
A maintainer will review it within 48 hours. While you wait:
- Make sure CI is passing (type-check + lint)
- Double-check the PR description is filled out and the issue is linked
- Feel free to ask questions in Discussions if you need help
If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project grow and attract more contributors!
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
File is missing a newline at end. Please add \n after the last line before pushing.
|
This PR has merge conflicts with current main. Please rebase on main to resolve before requesting review again. |
|
A few things need to be resolved before this can be merged:
The env validation in supabase.ts and resolve-user.ts diagnostics are welcome improvements once the conflicts are resolved. |
…ing & logging commiting to current version by resolving conflict commiting to current version by resolving conflict commiting to current version by resolving conflict commiting to current version by resolving conflict commiting to current version by resolving conflict commiting to current version by resolving conflict commiting to current version by resolving conflict commiting to current version by resolving conflict
3acf37b to
f58221f
Compare
Fix: Supabase RLS + API error handling
Summary
Adds environment validation, fixes RLS/migration gap, and improves defensive error handling and logging for authenticated API routes so user flows (sign-in, goals, settings, notifications, github-accounts) no longer return 500/404.
Changes
Testing
Migrations / Deploy notes
NEXT_PUBLIC_SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYNEXTAUTH_SECRETGITHUB_IDGITHUB_SECRETNotes for reviewers
How to verify in CI / review
Closes #609