From f2a9c7b1ca7f5b61bc97557a02b6fa1ce76162ab Mon Sep 17 00:00:00 2001 From: npc0-hue Date: Wed, 16 Sep 2026 09:36:38 +0800 Subject: [PATCH] Serve plugin assets from the repository root in the dev server --- platform_web/vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform_web/vite.config.ts b/platform_web/vite.config.ts index 2d03e87..f1b0e2b 100644 --- a/platform_web/vite.config.ts +++ b/platform_web/vite.config.ts @@ -10,6 +10,8 @@ export default defineConfig(({ mode }) => { server: { host: "127.0.0.1", port: 5173, + // Plugin pages and their assets live outside platform_web, so the dev server must serve the repository root too. + fs: { allow: [".", ".."] }, proxy: { "/api/v1": platformProxyTarget, "/healthz": platformProxyTarget