File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Print header
4
+ echo " ┌──────────────────────────────────────┐"
5
+ echo " │ JetKVM Development Setup │"
6
+ echo " └──────────────────────────────────────┘"
7
+
8
+ # Prompt for IP address
9
+ printf " Please enter the IP address of your JetKVM device: "
10
+ read ip_address
11
+
12
+ # Validate input is not empty
13
+ if [ -z " $ip_address " ]; then
14
+ echo " Error: IP address cannot be empty"
15
+ exit 1
16
+ fi
17
+
18
+ # Set the environment variable and run Vite
19
+ echo " Starting development server with JetKVM device at: $ip_address "
20
+ sleep 1
21
+ JETKVM_PROXY_URL=" http://$ip_address " vite dev --mode=device
Original file line number Diff line number Diff line change 7
7
"node" : " 21.1.0"
8
8
},
9
9
"scripts" : {
10
- "dev" : " vite dev --mode=development" ,
10
+ "dev" : " ./dev_device.sh" ,
11
+ "dev:cloud" : " vite dev --mode=development" ,
11
12
"build" : " npm run build:prod" ,
12
13
"build:device" : " tsc && vite build --mode=device --emptyOutDir" ,
13
- "dev:device" : " vite dev --mode=device" ,
14
14
"build:prod" : " tsc && vite build --mode=production" ,
15
15
"lint" : " eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
16
16
},
You can’t perform that action at this time.
0 commit comments