Serve plugin assets from the repository root in the dev server

This commit is contained in:
npc0-hue
2026-09-16 09:36:38 +08:00
parent c959a5bc03
commit f2a9c7b1ca
+2
View File
@@ -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