提交 646ea2b7 作者: 龚洪江

修复:更改正式服地址

上级 c8a0b8ca
#请求接口地址 #请求接口地址
VITE_REQUEST_BASE_URL='https://www.iuav.shop' // 正式服 #VITE_REQUEST_BASE_URL='https://www.iuav.shop' // 正式服
#VITE_REQUEST_BASE_URL='https://test.iuav.shop' #VITE_REQUEST_BASE_URL='https://test.iuav.shop'
#VITE_REQUEST_BASE_URL='/api' VITE_REQUEST_BASE_URL='/api'
#旧版接口地址 #旧版接口地址
#VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn' #VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn'
#VITE_REQUEST_BASE_URL='https://test.iuav.mmcuav.cn' #VITE_REQUEST_BASE_URL='https://test.iuav.mmcuav.cn'
......
...@@ -9,16 +9,16 @@ export default defineConfig({ ...@@ -9,16 +9,16 @@ export default defineConfig({
plugins: [react(), tsconfigPaths()], plugins: [react(), tsconfigPaths()],
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
// proxy: { proxy: {
// '/api': { '/api': {
// // target: 'http://192.168.3.111:8099', // 后端女pms // target: 'http://192.168.3.111:8099', // 后端女pms
// // target: 'http://192.168.3.111:8077', // 后端女oms // target: 'http://192.168.3.111:8077', // 后端女oms
// // target: 'http://192.168.3.17:8099', // 狗旺 // target: 'http://192.168.3.17:8099', // 狗旺
// target: 'https://test.iuav.shop', target: 'https://www.iuav.shop',
// changeOrigin: true, changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, ''), rewrite: (path) => path.replace(/^\/api/, ''),
// }, },
// }, },
}, },
envDir: resolve(__dirname, 'env'), envDir: resolve(__dirname, 'env'),
resolve: { resolve: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论