fix: proxy peripheral API through main server
This commit is contained in:
+2
-3
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user