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

Sandbox endpoint URL parameter not working #8024

Open
adrielTosi opened this issue Jan 27, 2025 · 0 comments
Open

Sandbox endpoint URL parameter not working #8024

adrielTosi opened this issue Jan 27, 2025 · 0 comments

Comments

@adrielTosi
Copy link

adrielTosi commented Jan 27, 2025

Issue Description

In a project I'm working on, the Sandbox is hosted in an URL, while the endpoint it should run introspection is in another. After we updated to Apollo v4, we realized there is no endpoint parameter when creating Apollo Server, like there used to be with the GraphQL Playground.

The closest solution I could find to that problem, would be using the endpoint URL parameter, as described here, but something is not right.

When I set our URL to https://my-url.com/graphql?endpoint=https://my-url.com/graphql/test I expect the Connection Setting endpoint to be set to https://my-url.com/graphql/test.
Instead I get https://my-url.com/graphql?endpoint=https://my-url.com/graphql/test in the Connection Setting endpoint.

Is there a way to achieve a different endpoint then the URL without changing it manually?

Link to Reproduction

https://codesandbox.io/p/devbox/modest-fermat-gv8lrv

Reproduction Steps

For some reason, codesandbox is giving error when initializing. Please run npm run start from the terminal.
Add endpoint URL param to Sandbox and check the endpoint inside Sandbox.

@adrielTosi adrielTosi changed the title Sandbox endpoint URL not working Sandbox endpoint URL parameter not working Jan 27, 2025
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

No branches or pull requests

1 participant