fix: proxy peripheral API through main server

This commit is contained in:
2026-10-23 16:06:01 +08:00
parent 2d8506fea0
commit 535b800401
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -60,9 +60,8 @@ export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
const peripheralProxy = {
[PERIPHERAL_PROXY_PATH]: {
target: env.TJWATER_PERIPHERAL_SAMPLE_UPSTREAM || "http://127.0.0.1:8011",
changeOrigin: false,
rewrite: (path: string) => path.slice(PERIPHERAL_PROXY_PATH.length) || "/"
target: env.TJWATER_SERVER_API_BASE_URL || "http://127.0.0.1:8000",
changeOrigin: false
}
};