A frequent problem with SSR is that some component libraries, such as react-leaflet or vue-leaflet, only work in the browser.
Server-side rendering such components will crash our Node.js server.
With vite-plugin-ssr
, there are two ways to handle client-only components:
import()
.