Skip to content

CLI does not work when the convex url has a path #31

Open
@giceratops

Description

@giceratops

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions