From 229da1ce6bafeb42e2c0ad8bcd1b4cce295770a3 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com> Date: Fri, 2 Oct 2026 19:08:34 -0400 Subject: [PATCH] ci(e2e): copy frontend/assets into the preview build (#5056) * ci(e2e): copy frontend/assets into the preview build The CI e2e run serves `vite build` output through `vite preview`, but the build leaves out frontend/assets, which only the Docker image copies on top of dist. Platform icons, logos, fonts and default covers came back as the SPA fallback HTML. Copy the folder into dist the same way the image does. Co-Authored-By: Claude Opus 5.5 (1M context) * Address Greptile review: shorten the asset-copy comment Co-Authored-By: Claude Opus 5.5 (1M context) --------- Co-authored-by: Claude Opus 5.5 (1M context) --- frontend/playwright.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index cffed5652..9a014275b 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -65,8 +65,9 @@ export default defineConfig({ ? {} : { webServer: { + // Vite skips `assets/`; the Docker image copies it over `dist`, so do the same. command: process.env.CI - ? "npm run build && npm run preview -- --port 3000 --strictPort --host 127.0.0.1" + ? "npm run build && cp -R assets/. dist/assets/ && npm run preview -- --port 3000 --strictPort --host 127.0.0.1" : "npm run dev", url: "http://127.0.0.1:3000", reuseExistingServer: !process.env.CI,