-
Notifications
You must be signed in to change notification settings - Fork 325
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
[BUG] graphiql is not accessible #243
Comments
Hmm odd - this is working in stackblitz. Something we shipped but haven't yet released? |
I wonder if it has to do with the work that @frandiox did to fix the static file routing. |
The static file routing did cause the problem. The vite default middlewares, which run first now, rewrite the |
I'm not sure the best way to resolve this. Maybe @frandiox has some ideas. |
Hmmm. Maybe we could split the Graphiql logic into a separate plugin, and run the middleware before Vite's? |
That's a good option. It seems odd that there isn't a way to configure this in vite though. |
The default vite middleware rewrites the URL `/graphiql` to `/index.html` Running the `/graphiql` middleware first prevents that.
The default vite middleware rewrites the URL `/graphiql` to `/index.html` Running the `/graphiql` middleware first prevents that.
fix(#243): fix graphiql by running graphiql middleware before vite
Changesets setup
Describe the bug
Graphiql explorer should be available at:
But instead, the Hydrogen 404 template is returned.
To Reproduce
Any new Hydrogen app
Or visit: https://stackblitz.com/edit/hydrogen-hzpacq and update the preview URL bar to one of the above.
Hydrogen version: 0.6.4
Node version
Device details
The text was updated successfully, but these errors were encountered: