Przeglądaj źródła

fix(frontend): route local dev api to backend root

Kazerin 1 tydzień temu
rodzic
commit
b429f5b47b
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      vite.config.js

+ 1 - 2
vite.config.js

@@ -31,8 +31,7 @@ export default defineConfig(({ mode, command }) => {
       proxy: {
         '/dev-api': {
           // target: 'http://192.168.110.235:8300/pipe',
-          target: 'http://localhost:8301',
-          //target: 'http://127.0.0.1:8300/pipe',
+          target: 'http://127.0.0.1:8301',
           // target: 'http://111.23.174.45:8301',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')