chore: 更新生产环境配置和部署路径
- 将前端项目的生产环境 API 地址和后台请求地址更新为新的服务器地址
- 修改大屏应用的生产环境公共路径从 '/large' 更改为 '/screen'
- 配置 estate-frontend-v2024 项目的构建输出路径为 'manage' 目录
- 更新相关服务的 baseURL 以指向新的生产环境端点
| | |
| | | } |
| | | process.env.CI = "false"; |
| | | const addCustomize = () => (config) => { |
| | | if (config.output.publicPath) { |
| | | config.output.publicPath = |
| | | process.env.NODE_ENV === "production" |
| | | ? "/" |
| | | : "/"; |
| | | if (config.output) { |
| | | if (process.env.NODE_ENV === "production") { |
| | | config.output.publicPath = "/manage/"; |
| | | } else { |
| | | config.output.publicPath = "/"; |
| | | } |
| | | } |
| | | if (config.resolve) { |
| | | config.resolve.extensions.push(".jsx"); |
| | |
| | | }, |
| | | "scripts": { |
| | | "start": "set NODE_OPTIONS=--openssl-legacy-provider && react-app-rewired start", |
| | | "build": "react-app-rewired --max-old-space-size=4096 build ", |
| | | "build": "set BUILD_PATH=manage && react-app-rewired --max-old-space-size=4096 build ", |
| | | "test": "react-app-rewired test", |
| | | "eject": "react-scripts eject", |
| | | "commit": "git cz" |
| | |
| | | // 定义全局变量 |
| | | |
| | | // export const BASE_URL = 'http://47.93.28.249:8181' |
| | | export const BASE_URL = 'http://221.182.45.100:8002'; |
| | | // export const BASE_URL = 'http://192.168.110.111:8080'; |
| | | export const SCREEN_URL = 'http://221.182.45.100:8087/#/'; |
| | | // export const SCREEN_URL = 'http://192.168.110.22:8087/#/'; |
| | | // export const BASE_URL = 'http://221.182.45.100:8002';测试 |
| | | export const BASE_URL = 'http://47.108.113.190:8182'; |
| | | // export const SCREEN_URL = 'http://221.182.45.100:8087/#/'; 测试 |
| | | export const SCREEN_URL = 'http://xllpgzx.com/screen/#/'; |
| | | |
| | | // export const BASE_URL = 'http://localhost:8080'; |
| | | |
| | |
| | | # 生产环境配置 |
| | | |
| | | # 主API地址 |
| | | # VUE_APP_BASE_URL=http://221.182.45.100:8180 |
| | | VUE_APP_BASE_URL=http://192.168.110.64:9908 |
| | | VUE_APP_BASE_URL=http://47.108.113.190:9908 |
| | | # // 测试环境 |
| | | # VUE_APP_BASE_URL=http://192.168.110.64:9908 |
| | | # 图片回显地址 |
| | | VUE_APP_IMAGE_BASE_URL=http://221.182.45.100:8180 |
| | | |
| | | # 后台请求地址 |
| | | VUE_ADMIN_BASE_URL=http://221.182.45.100:8002 |
| | | |
| | | VUE_ADMIN_BASE_URL=http://47.108.113.190:8182 |
| | | # 测试环境后台请求地址 |
| | | # VUE_ADMIN_BASE_URL=http://221.182.45.100:8002 |
| | |
| | | |
| | | // 创建专门用于文件流下载的 axios 实例 |
| | | const reportRequest = axios.create({ |
| | | baseURL: 'http://221.182.45.100:8002' || process.env.VUE_ADMIN_BASE_URL, |
| | | baseURL: 'http://47.108.113.190:8182' || process.env.VUE_ADMIN_BASE_URL, |
| | | withCredentials: false, |
| | | timeout: 60000 // 文件下载可能需要更长时间 |
| | | }) |
| | |
| | | |
| | | // 创建专门用于文件流下载的 axios 实例 |
| | | const reportRequest = axios.create({ |
| | | baseURL: 'http://221.182.45.100:8002' || process.env.VUE_ADMIN_BASE_URL, |
| | | baseURL: 'http://47.108.113.190:8182' || process.env.VUE_ADMIN_BASE_URL, |
| | | withCredentials: false, |
| | | timeout: 60000 // 文件下载可能需要更长时间 |
| | | }) |
| | |
| | | chunkFilename: 'js/[name].[hash:8].js' // 配置打包后的chunk文件名 |
| | | } |
| | | }, |
| | | publicPath: process.env.NODE_ENV === 'production' ? '/large' : '/', |
| | | publicPath: process.env.NODE_ENV === 'production' ? '/screen' : '/', |
| | | devServer: { |
| | | disableHostCheck: true |
| | | }, |