소스 검색

chore(dev-env): configure mqtt information for development environment

sw 1 개월 전
부모
커밋
cf26c94df9
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      config/dev.ts

+ 4 - 1
config/dev.ts

@@ -10,13 +10,16 @@ export default {
     quiet: false,
     stats: true,
   },
+  defineConstants: {
+    MQTT_BROKER_URL_FROM_WEBPACK: '"ws://192.168.1.132:8083/mqtt"',
+  },
   mini: {},
   h5: {
     publicPath: '/',
     devServer: {
       proxy: {
         '/dr': {
-          target: 'http://101.43.219.60:7700', // 你的后端服务地址
+          target: 'http://192.168.1.132:6001', // 你的后端服务地址
           changeOrigin: true, // 允许跨域
           // pathRewrite: {
           //   '^/dr/api': '' // 可选,用于重写路径