fix(netlify): hybrid env resolution with Netlify.env.get() fallback#430
fix(netlify): hybrid env resolution with Netlify.env.get() fallback#430liudmylasovetovs merged 16 commits intodevelopfrom
Conversation
fix(about): update LinkedIn follower fallback to 1800
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces a centralized server-side environment variable reading abstraction ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
NEXT_PUBLIC_are not being overridden by netlify.toml contexts opennextjs/opennextjs-netlify#2754)server-env.tswithreadServerEnv(): triesprocess.envfirst, falls back toNetlify.env.get()db/index.tsandauth.tsto usereadServerEnv()instead ofprocess.envdirectlydotenvdependency from runtime codeauth.ts: addedAPP_ENVinference from NetlifyCONTEXT, unified Google OAuth to use env-suffixed vars (_LOCAL/_DEVELOP/_PROD)db/index.ts: changed priority toDATABASE_URL→APP_ENV=local→ throwTest plan
APP_ENV=local) still works viaprocess.envSummary by CodeRabbit