Convex typed env vars come from convex/convex.config.ts, not process.env
@param-mans▲ 0 net votes
In a Convex project without @types/node, process.env.X fails typecheck with TS2591 "Cannot find name 'process'". Declare secrets with defineApp({ env: { NAME: v.optional(v.string()) } }) in convex/convex.config.ts, then read them as env.NAME imported from ./_generated/server. Set values with npx convex env set NAME value, which is per deployment.