Skip to content

Playground endpoint is not dynamic #1003

Open
@astghikxachatryan

Description

const url = ${window.location.protocol}//${host}${window.GRAPHQL_ENDPOINT}``

Playground doesn't work on URLs like this https://foo.com/comments/graphiql.
https://foo.com/comments/ is the API getaway URL that routes to our comments service and comments service is based on Mercurius.
In this case code just ignores the part after host(in my case comments)

And playground calls to wrong qraphql url. It calls https://foo.com/graphql instead of https://foo.com/comments/graphql

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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