feat: app启动调整

This commit is contained in:
2025-11-07 13:50:18 +07:00
parent 3d1c4853ce
commit 10a3408ff6
3 changed files with 5 additions and 4 deletions

View File

@@ -56,7 +56,8 @@ export const getApiBaseUrl = (): string => {
// - Windows: ipconfig
// - Mac/Linux: ifconfig
// - 或者使用 Metro Bundler 显示的 IP
return 'http://192.168.1.100:8086/api';
// process.env.APP_IP_ADDRESS 在 .env.development.local 中配置 自己本地创建,避免提交到代码库
return process.env.APP_IP_ADDRESS || 'http://192.168.1.100:8086/api';
}
case 'staging':