轻松聘
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
1.0 KiB

/**
* Expo 应用配置(app.config.js)
*
* extra.apiBaseUrl 通过 expo-constants 在运行时读取,见 src/api/api.ts:
* Constants.expoConfig?.extra?.apiBaseUrl
*
* 环境变量示例:
* API_BASE_URL=https://api.production.com # 生产环境
* API_BASE_URL=https://api.test.com # 测试环境
*/
export default {
expo: {
name: '有职',
slug: 'youzhi',
scheme: 'youzhi',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
userInterfaceStyle: 'light',
ios: {
supportsTablet: true,
},
android: {
adaptiveIcon: {
backgroundColor: '#E6F4FE',
foregroundImage: './assets/android-icon-foreground.png',
backgroundImage: './assets/android-icon-background.png',
monochromeImage: './assets/android-icon-monochrome.png',
},
},
web: {
favicon: './assets/favicon.png',
},
plugins: ['expo-router', 'expo-font'],
extra: {
apiBaseUrl: process.env.API_BASE_URL || 'https://dev.api.com',
},
},
};