mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 03:55:09 +08:00
fix(ui): proxy /skill-assets to backend so built-in skill logos load in vite dev
This commit is contained in:
parent
5f125364e9
commit
2bde2157d5
@ -37,6 +37,15 @@ export default defineConfig({
|
|||||||
// whole feature is dead in dev mode without it.
|
// whole feature is dead in dev mode without it.
|
||||||
ws: true,
|
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: {
|
build: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user