import type { CapacitorConfig } from '@capacitor/cli'; const config: CapacitorConfig = { appId: 'ai.hesychia.chat', appName: 'Hesychia', webDir: 'build', server: { // Bundled assets; HashRouter (#24) handles deep links without a rewrite server. // Android: https://localhost — iOS: capacitor://localhost (CORS trusted in chat_backend). androidScheme: 'https', iosScheme: 'capacitor', }, android: { allowMixedContent: false, }, ios: { // Prefer content-driven insets; CSS env(safe-area-inset-*) handles notch / home indicator. contentInset: 'automatic', // Keep WebView scroll on; rubber-band bounce disabled in AppDelegate after load. scrollEnabled: true, preferredContentMode: 'mobile', }, plugins: { SplashScreen: { launchAutoHide: true, backgroundColor: '#0f172a', showSpinner: false, }, Keyboard: { // StatusBar does not overlay the WebView; keep resizeOnFullScreen for notch devices. resizeOnFullScreen: true, }, }, }; export default config;