Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use big-brain to get url from CONVEX_DEPLOY_KEY (#34040)
preparation for canonical custom domains instead of generating urls from deploy keys, use the `/url_for_key` endpoint when deploying with a CONVEX_DEPLOY_KEY to find the url. This allows us to switch from .convex.cloud to a custom domain in a future change. With this change, the CLI should never try to calculate the url itself, and it shouldn't care what the url looks like. Therefore we should be able to change big-brain apis to return new urls, and the CLI should use them everywhere. Now that we're using `/url_for_key` in more places, update its docstring. Note it's unusual as an endpoint because it doesn't check authorization with the normal ExtractIdentity, but as long as we validate the deploy key and only return the url, there should be no authz concerns. GitOrigin-RevId: 453c4444c6285ad2192d25abe948e2a54d13db0c
- Loading branch information