mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-26 01:37:19 +00:00
feat: Add Capacitor live reload support for mobile dev
This commit is contained in:
parent
7238b2274e
commit
e40d2af9f2
1 changed files with 10 additions and 1 deletions
|
|
@ -1,12 +1,21 @@
|
||||||
import type { CapacitorConfig } from '@capacitor/cli';
|
import type { CapacitorConfig } from '@capacitor/cli';
|
||||||
|
|
||||||
|
// Live reload config - set LIVE_RELOAD_IP to your machine's local IP
|
||||||
|
// Example: LIVE_RELOAD_IP=192.168.1.100 npx cap sync
|
||||||
|
const liveReloadIP = process.env.LIVE_RELOAD_IP;
|
||||||
|
|
||||||
const config: CapacitorConfig = {
|
const config: CapacitorConfig = {
|
||||||
appId: 'com.aethex.os',
|
appId: 'com.aethex.os',
|
||||||
appName: 'AeThex OS',
|
appName: 'AeThex OS',
|
||||||
webDir: 'dist/public',
|
webDir: 'dist/public',
|
||||||
server: {
|
server: {
|
||||||
androidScheme: 'https',
|
androidScheme: 'https',
|
||||||
iosScheme: 'https'
|
iosScheme: 'https',
|
||||||
|
// Enable live reload when LIVE_RELOAD_IP is set
|
||||||
|
...(liveReloadIP && {
|
||||||
|
url: `http://${liveReloadIP}:5000`,
|
||||||
|
cleartext: true
|
||||||
|
})
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
SplashScreen: {
|
SplashScreen: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue