-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Remove assumptions around having an index.html that are incompatible with SSR #7631
Copy link
Copy link
Closed
Labels
enhancement: pending triagep2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Milestone
Description
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, and viteSpaFallbackMiddleware
Might also want to think about whether transformIndexHtml makes sense
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancement: pending triagep2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Type
Projects
Status
P2 - 3