fix(ui): proxy /skill-assets to backend so built-in skill logos load in vite dev

This commit is contained in:
matevip 2026-05-03 17:14:49 +08:00
parent 5f125364e9
commit 2bde2157d5

View File

@ -37,6 +37,15 @@ export default defineConfig({
// whole feature is dead in dev mode without it.
ws: true,
},
// Backend-served per-skill bundled assets (logos / screenshots) — see
// WebMvcConfig.addResourceHandlers. Without this proxy entry vite
// treats the path as a SPA route and returns index.html, which the
// browser then tries to render as an image and shows a broken-icon
// placeholder for any built-in skill that ships a logo.
'/skill-assets': {
target: 'http://localhost:18088',
changeOrigin: true,
},
},
},
build: {