flotilla/capacitor.config.ts

35 lines
695 B
TypeScript
Raw Normal View History

2026-01-28 01:15:22 +00:00
import type {CapacitorConfig} from "@capacitor/cli"
import {loadEnv} from "vite"
2024-11-15 23:16:06 +00:00
const config: CapacitorConfig = {
2026-01-28 01:15:22 +00:00
appId: "social.flotilla",
appName: loadEnv(process.env.NODE_ENV || "production", process.cwd(), "VITE_").VITE_PLATFORM_NAME,
2026-01-28 01:15:22 +00:00
webDir: "build",
ios: {
scheme: "Flotilla Chat",
},
2024-11-15 23:16:06 +00:00
plugins: {
2026-01-28 21:35:50 +00:00
CapacitorHttp: {
enabled: true,
},
SystemBars: {
2026-06-23 18:04:58 +00:00
insetsHandling: "css",
},
2024-11-15 23:16:06 +00:00
SplashScreen: {
androidSplashResourceName: "splash",
2025-03-04 18:47:58 +00:00
},
Keyboard: {
style: "DARK",
},
2025-06-27 16:41:30 +00:00
Badge: {
persist: true,
2026-01-28 01:15:22 +00:00
autoClear: true,
2025-06-27 16:41:30 +00:00
},
2025-02-01 01:09:46 +00:00
},
2026-01-24 00:51:02 +00:00
server: {
url: process.env.FLOTILLA_DESKTOP_DEV_URL,
2026-01-24 00:51:02 +00:00
},
2026-01-28 01:15:22 +00:00
}
2024-11-15 23:16:06 +00:00
2026-01-28 01:15:22 +00:00
export default config