mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:07:20 +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';
|
||||
|
||||
// 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 = {
|
||||
appId: 'com.aethex.os',
|
||||
appName: 'AeThex OS',
|
||||
webDir: 'dist/public',
|
||||
server: {
|
||||
androidScheme: 'https',
|
||||
iosScheme: 'https'
|
||||
iosScheme: 'https',
|
||||
// Enable live reload when LIVE_RELOAD_IP is set
|
||||
...(liveReloadIP && {
|
||||
url: `http://${liveReloadIP}:5000`,
|
||||
cleartext: true
|
||||
})
|
||||
},
|
||||
plugins: {
|
||||
SplashScreen: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue