Files
Academic-Affairs-System/web/capacitor.config.ts
T
2026-08-15 15:53:33 +08:00

28 lines
735 B
TypeScript

import type { CapacitorConfig } from '@capacitor/cli'
const config: CapacitorConfig = {
appId: 'edu.mingxu.jiaowu',
appName: '明序教务',
webDir: 'dist',
bundledWebRuntime: false,
android: {
allowMixedContent: true,
},
plugins: {
CapacitorUpdater: {
autoUpdate: 'off',
version: '1.0.0',
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