From 19b7325c8ea4c37d4c26fe069ecbeb871a11debc 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 ff70544cf69..254dc3365a0 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 2fa892b309f..8b2cefb8f5d 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);