RJR
Convex Community3y ago
2 replies
RJ

Determine whether deployment is prod or dev

Is there a way to determine, in the context of a Convex function, whether or not the deployment environment of that function is prod or dev? I know that I can facilitate this by manually setting env vars in each context, but it would be convenient if I were able to instead just reach for something like
process.env.CONVEX_DEPLOYMENT: "production" | "development"
.
Was this page helpful?