yinbangzhong
2024-08-26 ac56b0e4d31b7f857b444ad2c526d30f640f5b2c
config/vite.config.dev.ts
@@ -14,8 +14,8 @@
      proxy: {
        '/base': {
          // target: 'http://aiotlink.com:8189',
          target: 'http://192.168.20.116:8089',
          // target: 'http://192.168.20.158:8089',
          //target: 'http://192.168.20.116:8089',
          target: 'http://192.168.20.158:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
@@ -23,17 +23,17 @@
          // secure: false
        },
        '/api': {
          target: 'http://192.168.20.116:8089',
          // target: 'http://192.168.20.158:8089',
          // target: 'http://aiotlink.com:8189',
          //target: 'http://192.168.20.116:8089',
          target: 'http://192.168.20.158:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
        },
        '/api/v1': {
          target: 'http://192.168.20.116:8089',
          // target: 'http://192.168.20.158:8089',
          // target: 'http://aiotlink.com:8189',
          //target: 'http://192.168.20.116:8089',
          target: 'http://192.168.20.158:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),