Skip to content

Commit 4403440

Browse files
committed
Docs: Mention Vite publicDir interference
1 parent 0e92e0c commit 4403440

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/api/main-config/main-config-static-dirs.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Sets a list of directories of [static files](../../configure/integration/images-
1717

1818
{/* prettier-ignore-end */}
1919

20+
<Callout variant="info">
21+
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.
22+
</Callout>
23+
2024
## With configuration objects
2125

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

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

28-
{/* prettier-ignore-end */}
32+
{/* prettier-ignore-end */}

0 commit comments

Comments
 (0)