Skip to content

Allow CONVEX_CONFIG_PATH to be a environment variable #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

graham
Copy link

@graham graham commented Aug 15, 2025

The behavior of CONVEX_DEPLOY_KEY changes depending on if the current user is logged into convex via the CLI. This has some unintended consequences for users with a large number of projects.

The current behavior is correct for about 99% of Convex developers, however, in some cases (those with a very large number of projects) it limits their ability to deploy. The temp solution is to remove or rename the $HOME/.convex/config.json in order to allow deployment to a project that the user isn't a member of.

By allow this to be an environment variable it allows a user, at deploy time, to determine with auth details (or lack thereof) are used.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

so that users can swap convex login state (or leave it blank) when using the convex cli.
remove unneeded import
@graham
Copy link
Author

graham commented Aug 15, 2025

I'm not sure what the style choice here is, rootDirectory is defined in this file, but moving it above the const declaration seems messy and messes with the file.

What's your style advice here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant