Remove assumptions around having an index.html
that are incompatible with SSR
#7631
Closed
4 tasks done
Labels
Milestone
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: