From 2bde2157d58bca212f7f462a060df005edc74997 Mon Sep 17 00:00:00 2001 From: matevip Date: Sun, 3 May 2026 17:14:49 +0800 Subject: [PATCH] fix(ui): proxy /skill-assets to backend so built-in skill logos load in vite dev --- mateclaw-ui/vite.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mateclaw-ui/vite.config.ts b/mateclaw-ui/vite.config.ts index ed4a6592..a4cff1db 100644 --- a/mateclaw-ui/vite.config.ts +++ b/mateclaw-ui/vite.config.ts @@ -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: {