Configuring server.allowedHosts for tunneling
I am building an API route to handle webhook events.
For local development, I need to configure a tunnel solution (e.g., ngrok, tunnelmole) to receive the events.
In recent versions, I encounter this error:
However, the server option is not available in the Vite configuration, so there is no way to pass the
How can I resolve this issue? Is there any workaround ?
For local development, I need to configure a tunnel solution (e.g., ngrok, tunnelmole) to receive the events.
In recent versions, I encounter this error:
However, the server option is not available in the Vite configuration, so there is no way to pass the
allowedHosts configuration.How can I resolve this issue? Is there any workaround ?