Skip to content

Remove assumptions around having an index.html that are incompatible with SSR #7631

@benmccann

Description

@benmccann

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    P2 - 3

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions