fix: load Supabase client config from env#135
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Your plan currently allows 2 reviews/hour. Refill in 12 minutes. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
There was a problem hiding this comment.
Pull request overview
This PR removes hardcoded Supabase client configuration from the frontend and switches to Vite-provided environment variables, adding a clear fail-fast error when required config is missing—improving security and deploy configurability.
Changes:
- Replace hardcoded Supabase URL/key with
import.meta.env.VITE_SUPABASE_URLandimport.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY. - Throw an explicit error at module init when either required env var is missing.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Resumo
VITE_SUPABASE_URLeVITE_SUPABASE_PUBLISHABLE_KEY.Validação
npm cinpm run buildcom env vars explícitasObservação
npm run typechecke o hook local de pre-push falharam por problema existente no Windows:spawnSync npx ENOENT.Summary by cubic
Load Supabase client config from environment variables to remove hardcoded credentials and fail fast when they’re missing. Improves security and makes deployments easier to configure.
VITE_SUPABASE_URLandVITE_SUPABASE_PUBLISHABLE_KEYin your.envor hosting env.Written for commit a7fe004. Summary will update on new commits. Review in cubic