Site: https://autoaffiliate.netlify.app/
Issue: Since ~March 27, 2026, user-defined environment variables are no longer available via process.env in
scheduled functions, background functions, and the internally generated async-workloads-scheduler-aux
function. System variables (like AWS_LAMBDA_FUNCTION_NAME) are still present — only user-defined vars are
missing.
What works: The main API function using Functions v1 style (export const handler) — process.env contains all
user-defined variables as expected.
What doesn’t work: Scheduled and background functions using Functions v2 style (export default) — process.env
is empty for user-defined vars. I confirmed this by adding console.log(process.env) inside the handler at
runtime.
Impact:
- All scheduled/background functions that rely on user-defined env vars crash on startup
- The async-workloads-scheduler-aux function also crashes, which causes all async workload event sends to
fail with 401 Unauthorized (the client can’t authenticate without env vars)
Error from triggers:
AsyncWorkloadsClient#send() did not get a event router ack - response status 401
What I’ve verified:
- Env vars are configured with All scopes and Same value in all deploy contexts
- No code changes were made to these functions before the issue appeared
- Netlify.env.get() also returns undefined for user-defined vars in these functions
- Hardcoding values directly in the function code works as a workaround
- console.log(process.env) shows system vars are present but all user-defined vars are missing
No changes were made to function code, Netlify config, or environment variable settings before this started
happening. This appears to be a platform-level regression affecting Functions v2 and extension-generated
internal functions.