Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make url dynamic so even if the graphiql is deployed on baseUrl it can work. #1037

Merged
merged 1 commit into from
Oct 23, 2023
Merged

make url dynamic so even if the graphiql is deployed on baseUrl it can work. #1037

merged 1 commit into from
Oct 23, 2023

Conversation

glg-satish-tripathi
Copy link
Contributor

@glg-satish-tripathi glg-satish-tripathi commented Oct 19, 2023

fix - #1003 issue.

The graphiql failed to load schema when it's been deployed on https://foo.com/bar/graphiql, it will look for the schema at https://foo.com/graphql but it's actually running on https://foo.com/bar/graphql, which is an invalid graphql endpoint as it is missing window.baseUrl. So we are addressing this in the PR.

image

Thank you @ddai1 for help here.

@glg-satish-tripathi
Copy link
Contributor Author

glg-satish-tripathi commented Oct 20, 2023

@mcollina Please review and approve these changes. I'm currently working on a GraphQL API, and without these modifications, I won't be able to deploy the setup. I'm not an expert in JavaScript, so I'm uncertain about where, if at all, unit tests should be added.

Copy link
Collaborator

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 54bc3ec into mercurius-js:master Oct 23, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants