Open HosseinAgha opened 3 years ago
This option is not enabled by default. It will be enabled in the next major release.
Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Thank you, I'd be happy to. But I'm so busy at the moment. I'll try to open a PR as soon as I could.
When
exposeHeadRoutes
is true in fastify factory function options, I get theError: websocket handler can only be declared in GET method
. I think this error is from Mercurius as I don't use WebSocket plugin.As this option is enabled by default in fastify (https://github.com/fastify/fastify/pull/2826), I think we need to resolve this issue as fast as possible.