guillemusG
Convex Community6mo ago
2 replies
guillemus

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
...


There's no multiple CONVEX_URL env vars, one has a suffix.

I'm using convex v1.25.4
image.png
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.
Was this page helpful?