Vilian
Vilian4w ago

--env-file option not respected

The --env-file option of the convex dev command is not being respected. There is also one more issue suffering from this https://discord.com/channels/1019350475847499849/1389435809337442335 For reference, this option was introduced back in https://github.com/get-convex/convex-backend/commit/2ed5fe1139153d0ede9828ffcd977f7b2866150d
2 Replies
Convex Bot
Convex Bot4w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart4w ago
--env-file is only for choosing a different file than .env.local. The .env.local is used to select a deployment, but your convex code will not read environment variables from it. The only way to set env vars for access in your convex code is through the Convex dashboard or via npx convex env set <name> <value>

Did you find this page helpful?