Functions v2 (export default) intermittently missing all user-defined env vars at runtime

Since ~March 28, 2026, user-defined environment variables are intermittently absent from process.env at runtime in a standard request/response function using the Functions v2 export default style. System variables and Netlify’s built-in URL var remain present. Netlify.env.get() also returns undefined for the affected vars.

Setup: Single request/response function (not scheduled or background), deployed with esbuild bundler. Env vars configured with All scopes in the Netlify dashboard. No code or config changes preceded the issue.

What we’ve confirmed:

  • When it occurs, Object.keys(process.env).length shows 37 keys — all system vars, zero user-defined
  • We implemented retry logic with exponential backoff (50–400ms, ~750ms total wait). The vars never appeared during retries — they are completely absent for the entire invocation, not delayed
  • The issue is intermittent: some cold starts receive env vars normally, others do not
  • –skip-functions-cache deploys do not resolve it
  • Netlify.env.get() returns undefined for the same vars

Impact: Any handler that reads a user-defined env var (database connection, API keys, auth secrets) returns a 500. Login, checkout, and all authenticated routes fail intermittently with no code change on our side.

Having the same issue. No code or config changes however getting a bunch of missing environment variables on both live and branch deploys

1 Like

Thanks for confirming, as I thought I was going mad. I see no status issue or report anywhere for this over the last 24 hours. I just had multiple users tell me.

Hi all, thanks for reporting this and we’re so sorry about this issue!

We currently have a status page up regarding env vars not being read at build time, and our engineers are currently investigating this with high priority! Please tune into the status page for updates.

2 Likes

Hey all,

Just a quick update on this one. We currently rolled out a fix and monitoring. Please do let us know if you continue to have issues.