feat: add protocol interaction observability

This commit is contained in:
hectorzhao
2026-07-24 10:47:47 +08:00
parent 4f4fa5fcb7
commit 0bfeb0839e
17 changed files with 740 additions and 42 deletions
+4 -2
View File
@@ -2,6 +2,8 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
const apiProxyTarget = process.env.API_PROXY_TARGET ?? 'http://localhost:3000';
export default defineConfig({
plugins: [react()],
cacheDir: 'node_modules/.vite-cmpp',
@@ -15,7 +17,7 @@ export default defineConfig({
strictPort: false,
proxy: {
'/api': {
target: 'http://localhost:3000',
target: apiProxyTarget,
changeOrigin: true,
},
},
@@ -27,7 +29,7 @@ export default defineConfig({
preview: {
proxy: {
'/api': {
target: 'http://localhost:3000',
target: apiProxyTarget,
changeOrigin: true,
},
},