From cf931e1ca3d4540aa24a7bbc38ab2f14f6342272 Mon Sep 17 00:00:00 2001 From: Ethan Swan Date: Sun, 8 Feb 2026 12:40:52 -0600 Subject: [PATCH] Add NEXT_PUBLIC_IDP_BASE_URL to runtime configmaps 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 --- k8s/prod/configmap-env.yaml | 1 + k8s/staging/configmap-env.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/k8s/prod/configmap-env.yaml b/k8s/prod/configmap-env.yaml index 00f17f8..1c43303 100644 --- a/k8s/prod/configmap-env.yaml +++ b/k8s/prod/configmap-env.yaml @@ -5,4 +5,5 @@ metadata: data: ENV: "prod" IDP_BASE_URL: "http://identity.identity-prod.svc.cluster.local" + NEXT_PUBLIC_IDP_BASE_URL: "https://identity.ethanswan.com" SENTRY_DSN: "https://42fb7fde7d5842831f2324ed33c7f50f@o4509062063587328.ingest.us.sentry.io/4509062066012160" diff --git a/k8s/staging/configmap-env.yaml b/k8s/staging/configmap-env.yaml index eda0f7d..7482993 100644 --- a/k8s/staging/configmap-env.yaml +++ b/k8s/staging/configmap-env.yaml @@ -5,4 +5,5 @@ metadata: data: ENV: "staging" IDP_BASE_URL: "http://identity.identity-staging.svc.cluster.local" + NEXT_PUBLIC_IDP_BASE_URL: "https://identity-staging.tailc06f30.ts.net" SENTRY_DSN: "https://42fb7fde7d5842831f2324ed33c7f50f@o4509062063587328.ingest.us.sentry.io/4509062066012160"