wanger 5 miesięcy temu
rodzic
commit
cdeaeeb6a4
2 zmienionych plików z 12 dodań i 2 usunięć
  1. 6 2
      website/.env.production
  2. 6 0
      website/vite.config.js

+ 6 - 2
website/.env.production

@@ -8,9 +8,13 @@ port = '5000'
 # 国土空间规划“一张图”实施监督信息系统/生产环境
 #VITE_APP_BASE_API = 'http://192.168.60.40:8080'
 #VITE_ARC_SERVER_API = 'http://192.168.100.252:6080'
-#通辽部署环境
-VITE_APP_BASE_API = 'http://10.255.133.174:8080'
+#通辽部署环境 176
+VITE_APP_BASE_API = 'http://10.255.133.176:8080'
 VITE_ARC_SERVER_API = 'http://10.255.133.174:6080'
 
+#通辽部署环境 174
+#VITE_APP_BASE_API = 'http://10.255.133.174:8080'
+#VITE_ARC_SERVER_API = 'http://10.255.133.174:6080'
+
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 #VITE_BUILD_COMPRESS = gzip

+ 6 - 0
website/vite.config.js

@@ -76,6 +76,12 @@ export default defineConfig(({ mode, command }) => {
                     changeOrigin: true,
                     // rewrite: (p) => p.replace(/^\/files/, '')
                 },
+                "/ghfile": {
+                    target: "http://192.168.100.252:8080",
+                    ws: false,
+                    changeOrigin: true,
+                    // rewrite: (p) => p.replace(/^\/files/, '')
+                },
                 // 现场市级arcgiserver服务器ip
                 "/arcgis": {
                     target: "http://192.168.100.252:6080",