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
When rendering a page via SSR we cannot assume that Vite will be serving an index.html page. Rather, in SSR the page contents are dynamically generated at runtime. E.g. in SvelteKit we want requests to be served with our middleware and so we have to remove these middlewares that are incompatible.
Suggested solution
Need a cleaner way to disable viteIndexHtmlMiddleware, vite404Middleware, and viteSpaFallbackMiddleware
Might also want to think about whether transformIndexHtml makes sense
Clear and concise description of the problem
When rendering a page via SSR we cannot assume that Vite will be serving an
index.html
page. Rather, in SSR the page contents are dynamically generated at runtime. E.g. in SvelteKit we want requests to be served with our middleware and so we have to remove these middlewares that are incompatible.Suggested solution
Need a cleaner way to disable
viteIndexHtmlMiddleware
,vite404Middleware
, andviteSpaFallbackMiddleware
Might also want to think about whether
transformIndexHtml
makes senseAlternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: