This PR, instead of injecting the script with a client-side plugin, adds it via a nitro plugin. This should improve stability and reduce the client-side JS payload.
More importantly, it also handles the case of rendering a SPA fallback in an otherwise SSR deployment, which was otherwise broken.
This PR, instead of injecting the script with a client-side plugin, adds it via a nitro plugin. This should improve stability and reduce the client-side JS payload.
More importantly, it also handles the case of rendering a SPA fallback in an otherwise SSR deployment, which was otherwise broken.