EvaE
Convex Community16mo ago
5 replies
Eva

Querying for dev/preview/prod status within code?

Does Convex offer a way to query for whether the app is dev, preview, or prod? I can use process.env.NODE_ENV to check for prod or dev but it registers preview deploys as production. (This is just the way NODE_ENV works so I’m wondering if there is an equivalent CONVEX_ENV of sorts)
Was this page helpful?