Skip to content

Conversation

@eswan18
Copy link
Owner

@eswan18 eswan18 commented Feb 8, 2026

Summary

  • NEXT_PUBLIC_IDP_BASE_URL is baked into client JS at build time, but server-side code (SSR) still reads it from process.env at runtime
  • The requiredEnv() call in lib/idp/client.ts throws without it, causing SSR failures in prod/staging
  • Adds the variable to both staging and prod env configmaps

Test plan

  • ArgoCD syncs the updated configmaps
  • Pods restart and SSR no longer throws Missing required environment variable: NEXT_PUBLIC_IDP_BASE_URL
  • OAuth login flow works end-to-end

🤖 Generated with Claude Code

Next.js bakes NEXT_PUBLIC_ vars into client bundles at build time,
but server-side code (SSR) still reads them from process.env at
runtime. The requiredEnv() call in lib/idp/client.ts needs this
variable available at runtime too.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
forecasting Error Error Feb 8, 2026 6:42pm

@eswan18 eswan18 merged commit bc844fe into main Feb 8, 2026
1 of 3 checks passed
@eswan18 eswan18 deleted the fix/next-public-idp-runtime-env branch February 8, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant