From 1fd5fe741cee21048f3ba49b30d79a90585e47ce Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 25 Jun 2026 17:09:29 +0200 Subject: [PATCH] Always use `public/packs` and not `public/packs-test` for assets (#39623) --- config/vite.json | 2 +- vite.config.mts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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);