capacitor.config.ts 401 B

1234567891011
  1. import type { CapacitorConfig } from '@capacitor/cli'
  2. const config: CapacitorConfig = {
  3. appId: 'cc.zenpower.agent',
  4. appName: 'Agent',
  5. webDir: 'dist',
  6. // WebView 的来源是 https://mobile.zenpower.local:需要加入后台「设置 → 允许的来源」,/v1 与 /bot/v1 才会放行跨域
  7. server: { androidScheme: 'https', hostname: 'mobile.zenpower.local' },
  8. }
  9. export default config