convex-js
convex-js copied to clipboard
CLI does not work when the convex url has a path
This is an edge case when self-hosting the convex backend.
When hosting the backend on https://domain.com/api/convex, npx convex dev does not work. It fails on Checking for index or schema changes.. and ultimately errors with ✖ Error: Unable to run schema validation on https://domain.com/api/convex.
Looks like the cli is not compatible with custom deploymentUrls that include paths (https://github.com/get-convex/convex-js/blob/main/src/cli/lib/utils/utils.ts#L1109-L1114). It will strip out the path of the original deploymentUrl.