You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Vite, Vue and vite-ssr as described in the readme. I noticed that export default viteSSR(...) is called three times on server side for a normal client side home page call. I use a normal node dev server like this:
...
/* Create vite-ssr server in middleware mode. */const{ createSsrServer }=awaitimport('vite-ssr/dev/index.js')constviteServer=awaitcreateSsrServer({server: {middlewareMode: 'true'},appType: 'custom',})/* Use vite's connect instance as middleware. */app.use(viteServer.middlewares)...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I use Vite, Vue and vite-ssr as described in the readme. I noticed that
export default viteSSR(...)
is called three times on server side for a normal client side home page call. I use a normal node dev server like this:Any idea?
Beta Was this translation helpful? Give feedback.
All reactions