Always use public/packs and not public/packs-test for assets (#39623)

This commit is contained in:
Claire 2026-06-25 17:09:29 +02:00
parent 27c66a997f
commit 1fd5fe741c
2 changed files with 2 additions and 4 deletions

View File

@ -17,7 +17,7 @@
},
"test": {
"autoBuild": true,
"publicOutputDir": "packs-test",
"publicOutputDir": "packs",
"port": 3037
}
}

View File

@ -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);