diff --git a/config/vite.json b/config/vite.json index ff70544cf6..254dc3365a 100644 --- a/config/vite.json +++ b/config/vite.json @@ -17,7 +17,7 @@ }, "test": { "autoBuild": true, - "publicOutputDir": "packs-test", + "publicOutputDir": "packs", "port": 3037 } } diff --git a/vite.config.mts b/vite.config.mts index 2fa892b309..8b2cefb8f5 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -33,9 +33,7 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => { const isProdBuild = mode === 'production' && command === 'build'; let outDirName = 'packs-dev'; - if (mode === 'test') { - outDirName = 'packs-test'; - } else if (mode === 'production') { + if (mode === 'test' || mode === 'production') { outDirName = 'packs'; } const outDir = path.resolve('public', outDirName);