Skip to content

Commit

Permalink
fix: disable Rsbuild’s public dir (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Aug 12, 2024
1 parent a8fdcf7 commit 5da76bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/builder-rsbuild/src/preview/iframe-rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ export default async (
assetPrefix: '/',
externals,
},
server: {
// Storybook will handle public directory itself, disable Rsbuild's public dir
// feature to prevent overwriting Storybook's public directory.
publicDir: false,
},
dev: {
assetPrefix: '',
progressBar: !quiet,
Expand Down
Loading

0 comments on commit 5da76bb

Please sign in to comment.