26 lines
685 B
TypeScript
26 lines
685 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: {
|
|
// 네이티브 HTTP + AbortSignal 조합이 로그인 fetch 를 끊는 경우가 있어 WebView fetch 사용
|
|
CapacitorHttp: {
|
|
enabled: false,
|
|
},
|
|
SplashScreen: {
|
|
launchAutoHide: true,
|
|
backgroundColor: '#0f0f23',
|
|
showSpinner: false,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|