arbalada
arbalada4w ago

Found multiple CONVEX_URL environment variables in .env.local so cannot update automatically.

Getting this warning when I have the following .env.local file:
...
CONVEX_URL=https://some-deployment.convex.cloud
PUBLIC_CONVEX_URL=https://some-deployment.convex.cloud
...
...
CONVEX_URL=https://some-deployment.convex.cloud
PUBLIC_CONVEX_URL=https://some-deployment.convex.cloud
...
There's no multiple CONVEX_URL env vars, one has a suffix. I'm using convex v1.25.4
No description
Solution:
It checks from this list, and if it finds multiple it doesn't know which one was set by the cli. Assuming the PUBLIC_ prefix is for your framework, I'd recommend dropping the plain CONVEX_URL and just using that. CONVEX_URL will still be set in the environment for your convex code.
Jump to solution
1 Reply
Solution
erquhart
erquhart4w ago
It checks from this list, and if it finds multiple it doesn't know which one was set by the cli. Assuming the PUBLIC_ prefix is for your framework, I'd recommend dropping the plain CONVEX_URL and just using that. CONVEX_URL will still be set in the environment for your convex code.

Did you find this page helpful?