Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/api/main-config/main-config-static-dirs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Sets a list of directories of [static files](../../configure/integration/images-

{/* prettier-ignore-end */}

<Callout variant="info">
When using Vite-based frameworks, additional directories may be copied to your build directory because of Vite's own [static asset handling](https://vite.dev/guide/assets#the-public-directory). You can set Vite's `publicDir` option to `false` to disable this behavior.
</Callout>
Comment on lines +20 to +22
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sidnioulz, when you're able, can you add the same callout in https://storybook.js.org/docs/configure/integration/images-and-assets#serving-static-files-via-storybook-configuration for a bit more visibility so that this information doesn't stay "buried" in the configuration docs?


## With configuration objects

You can also use a configuration object to define the directories:
Expand All @@ -25,4 +29,4 @@ You can also use a configuration object to define the directories:

<CodeSnippets path="main-config-static-dirs-with-object.md" />

{/* prettier-ignore-end */}
{/* prettier-ignore-end */}
Loading