Files
goldenChart/app/capacitor.config.ts
T
2026-05-28 16:24:14 +09:00

28 lines
658 B
TypeScript

import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'com.goldenchart.app',
appName: 'GoldenChart',
webDir: 'dist',
server: {
// https 스킴이면 WebView가 https://localhost → http API 호출이 mixed content로 차단됨 (Failed to fetch)
androidScheme: 'http',
iosScheme: 'capacitor',
},
plugins: {
CapacitorHttp: {
enabled: true,
},
SplashScreen: {
launchAutoHide: true,
backgroundColor: '#0f0f23',
showSpinner: false,
},
PushNotifications: {
presentationOptions: ['badge', 'sound', 'alert'],
},
},
};
export default config;