This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 2d8cca1a4 fix(config-ui): fix grafana proxy in dev mode (#8499)
2d8cca1a4 is described below

commit 2d8cca1a43b40a4a023f538fd79143d638e7b53b
Author: DiscreteTom <[email protected]>
AuthorDate: Tue Aug 5 11:45:12 2025 +0800

    fix(config-ui): fix grafana proxy in dev mode (#8499)
---
 config-ui/vite.config.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/config-ui/vite.config.ts b/config-ui/vite.config.ts
index bbcb76b4d..b9def37db 100644
--- a/config-ui/vite.config.ts
+++ b/config-ui/vite.config.ts
@@ -35,6 +35,10 @@ export default defineConfig({
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/api\//, ''),
       },
+      '/grafana': {
+        target: 'http://localhost:3002/',
+        changeOrigin: true,
+      },
     },
   },
 

Reply via email to