RJR
Convex Community3y ago
17 replies
RJ

Env var availability in Convex functions

I'm having some trouble understanding how/when env vars are made accessible in the context of Convex functions. Are they inlined as part of a compilation step or something? If I run
console.log(process.env)
in a Convex function (an HTTP action), I see in the Convex dashboard logs
log [process.env]
, and if I run
Object.keys(process.env).forEach((envKey) => console.log(envKey))
I see no output in the Convex dashboard logs at all, which I find rather surprising.
Was this page helpful?