Skip to content

Building with ssr: false doesn't seem to workΒ #22

@dangmai

Description

@dangmai

Thank you for this very useful plugin.

When I try to build a project with ssr: false, RSbuild still builds both client and server, and the client files don't seem to work on their own.

Here's a reproducible repo: https://github.com/dangmai/rr7-spa-rsbuild

There are 2 packages within it, one with Vite and one with RSbuild. Both are building the same project files, both with ssr: false in react-router-config.ts.

After the build, the Vite project contains a build/client directory with a clear index.html that can be deployed. Meanwhile, the RSbuild project contains both build/server and build/client, and the files in build/client don't seem to work on their own in the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions