Open clayrisser opened 8 months ago
Did you tried this example ? It sets up a custom server, giving you the full control of it: https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nextjs#websockets-for-subscriptions
Yeah, but the hot reloading doesn't work with that example.
It looks like that you've moved away from Next.js, but can you re-open this issue anyways for other users? You can unsubscribe from this issue if you don't want to get notified.
I ended up running my backend separately and putting an nginx reverse proxy in front of nextjs and the backend.
Describe the bug
What would be the equivalent in this example to bring back HMR?
Your Example Website or App
https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nextjs
Steps to Reproduce the Bug or Issue
Run yoga on nextjs with websockets
Expected behavior
I expect HMR to still work but it break with the following error.
Screenshots or Videos
No response
Platform
@graphql-yoga/*
version(s): [e.g. 2.5.1]Additional context
No response