convex-js icon indicating copy to clipboard operation
convex-js copied to clipboard

CLI does not work when the convex url has a path

Open giceratops opened this issue 8 months ago • 1 comments

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.

giceratops avatar Mar 04 '25 15:03 giceratops