| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import { CapacitorConfig } from '@capacitor/cli';
- /**
- * Capacitor 配置示例文件
- *
- * 使用方法:
- * 1. 复制此文件为 capacitor.config.ts
- * 2. 根据实际情况修改配置
- * 3. 运行 npx cap init 时会自动生成配置文件
- */
- const config: CapacitorConfig = {
- appId: 'com.yourcompany.digitalhuman',
- appName: '数字人',
- webDir: 'dist',
- server: {
- // 开发时可以使用本地服务器
- // url: 'http://localhost:3000/sentio',
- // cleartext: true,
-
- // 生产环境使用实际服务器地址
- url: 'https://192.168.20.177:3000/sentio',
- cleartext: false, // HTTPS 使用 false
- },
- android: {
- allowMixedContent: true, // 允许混合内容
- buildOptions: {
- // 如果需要签名,配置以下选项
- // keystorePath: 'path/to/keystore.jks',
- // keystorePassword: 'your-password',
- // keystoreAlias: 'your-alias',
- // keystoreAliasPassword: 'your-alias-password'
- }
- },
- plugins: {
- // 可以在这里配置插件
- SplashScreen: {
- launchShowDuration: 2000,
- launchAutoHide: true,
- backgroundColor: "#ffffff",
- androidSplashResourceName: "splash",
- androidScaleType: "CENTER_CROP",
- showSpinner: false,
- },
- },
- };
- export default config;
|