Skip to content

[Feature]: support don't fallback to csr when ssr failed #1317

@hardfist

Description

@hardfist

What problem does this feature solve?

sometime ssr failed means there's something wrong with the code, if we ignore the ssg failed and fallback to csr which may cause csr fail too, which happens in web-infra-dev/rspack#7505

What does the proposed API look like?

add a option to disable ssg fallback

{
  fallback: false | 'csr' // false mean don't do fallback when ssg failed , 'csr' means fallback to csr when ssg failed
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions