feat: app启动调整
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user