2025-11-11 17:19:34 +08:00
|
|
|
|
// baseWebConfig.js
|
|
|
|
|
|
const baseWebConfig = {
|
|
|
|
|
|
// 从环境变量读取baseUrl(本地开发用localhost,build用ip:10001)
|
|
|
|
|
|
baseUrl: process.env.REACT_APP_BACKEND_ADDRESS,
|
|
|
|
|
|
// 读取超时时间(转成数字类型)
|
|
|
|
|
|
timeout: Number(process.env.REACT_APP_BACKEND_TIMEOUT)
|
|
|
|
|
|
};
|
|
|
|
|
|
console.log('当前环境 baseUrl:', baseWebConfig.baseUrl);
|
|
|
|
|
|
console.log('当前超时时间:', baseWebConfig.timeout);
|
|
|
|
|
|
export default baseWebConfig;
|