mirror of
https://github.com/rommapp/romm.git
synced 2026-10-12 02:21:58 +00:00
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) <[email protected]> * Address Greptile review: shorten the asset-copy comment Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8e715926e9
commit
229da1ce6b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user