You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace Docker env var placeholders with server-side EnvProvider context
Next.js inlines NEXT_PUBLIC_* as truthy string literals at build time, causing the minifier to dead-code-eliminate all fallback branches. Runtime sed replacement with empty strings left functions returning "". Introduces buildClientEnv() in the server layout and a useEnv() React context so client components read real env values at request time, removing the need for placeholder/sed machinery for all vars except NEXT_PUBLIC_API_URL (still needed by packages/core).
0 commit comments