From 9e8b99bc9ec328b30fa015a07dfc487052247d15 Mon Sep 17 00:00:00 2001 From: Lum1104 Date: Thu, 2 Apr 2026 14:28:53 +0800 Subject: [PATCH] feat(dashboard): serve domain-graph.json via Vite dev server --- understand-anything-plugin/packages/dashboard/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/understand-anything-plugin/packages/dashboard/vite.config.ts b/understand-anything-plugin/packages/dashboard/vite.config.ts index cd43a83..c5fef29 100644 --- a/understand-anything-plugin/packages/dashboard/vite.config.ts +++ b/understand-anything-plugin/packages/dashboard/vite.config.ts @@ -44,6 +44,7 @@ export default defineConfig({ const pathname = url.pathname; const isProtectedEndpoint = pathname === "/knowledge-graph.json" || + pathname === "/domain-graph.json" || pathname === "/diff-overlay.json" || pathname === "/meta.json"; @@ -66,6 +67,8 @@ export default defineConfig({ ? "diff-overlay.json" : pathname === "/meta.json" ? "meta.json" + : pathname === "/domain-graph.json" + ? "domain-graph.json" : "knowledge-graph.json"; const graphDir = process.env.GRAPH_DIR;