Files
Academic-Affairs-System/web/capacitor.config.ts
2026-09-29 10:42:28 +08:00

28 lines
765 B
TypeScript

import type { CapacitorConfig } from '@capacitor/cli'
import { branding } from './branding.config.ts'
const config: CapacitorConfig = {
appId: 'edu.mingxu.jiaowu',
appName: branding.shortName,
webDir: 'dist',
bundledWebRuntime: false,
android: {
allowMixedContent: true,
},
plugins: {
CapacitorUpdater: {
autoUpdate: 'off',
appReadyTimeout: 10000,
// A 30 MB OTA package can take longer than the plugin default on a
// mobile network. Manual checking keeps the UI responsive while this
// timeout only governs the native request/download pipeline.
responseTimeout: 60,
autoDeleteFailed: true,
autoDeletePrevious: true,
keepUrlPathAfterReload: true,
},
},
}
export default config