forked from karthilxg/chess-trainer-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
capacitor.config.ts
51 lines (48 loc) · 1.23 KB
/
capacitor.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { CapacitorConfig } from "@capacitor/cli";
const server: CapacitorConfig["server"] = {
androidScheme: "https",
} as object;
console.log("Env?: ", process.env.NODE_ENV);
if (process.env.NODE_ENV === "development") {
// const interfaces = networkInterfaces();
// const ip = interfaces.eth0[0].address;
//
// console.log("IP: ", ip);
// server = {
// url: `http://${ip}:3000`,
// cleartext: true,
// };
} else {
// server.url = "https://chessbook.com";
}
const config: CapacitorConfig = {
appId: "com.chessbook",
appName: "Chessbook",
backgroundColor: "#131516",
webDir: "dist",
server,
plugins: {
PushNotifications: {
presentationOptions: ["sound", "alert"],
},
},
// plugins: {
// SplashScreen: {
// launchShowDuration: 500,
// launchAutoHide: true,
// launchFadeOutDuration: 3000,
// backgroundColor: "#ffffffff",
// androidSplashResourceName: "splash",
// androidScaleType: "CENTER_CROP",
// showSpinner: true,
// androidSpinnerStyle: "large",
// iosSpinnerStyle: "small",
// spinnerColor: "#999999",
// splashFullScreen: true,
// splashImmersive: true,
// layoutName: "launch_screen",
// useDialog: true,
// },
// },
};
export default config;