FAQ
Deploy Storybook to a subdirectory or subpath
The default Vite and webpack builders emit relative asset paths, but Rsbuild recommends absolute paths for deployment (see the asset prefix tips). To deploy Storybook at https://example.com/sb-path, set output.assetPrefix.
Build errors from unexpected files
This issue mostly affects older Rspack versions. Modern Rspack handles webpackInclude correctly.
If you encounter issues where Rspack bundles files it shouldn't (like Markdown files in unexpected places), you can use rspack.IgnorePlugin to exclude them.
Why do sandboxes use getAbsolutePath to resolve the framework?
See Storybook's FAQ for the explanation.
How can I inspect the Rsbuild or Rspack config used by Storybook?
Rsbuild offers a CLI debug mode. Enable it when running Storybook to dump the generated configuration paths.
In development:
In production:
Check the CLI output to see where the Rsbuild and Rspack configs are written.
Can I use this builder with Rspack directly?
Yes. Rsbuild is built on Rspack, so you can feed your Rspack configuration into the Rsbuild builder. Follow the Rspack integration guide to learn how.