Closed glg-satish-tripathi closed 9 months ago
@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.
fix - https://github.com/mercurius-js/mercurius/issues/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.
Thank you @ddai1 for help here.