chore: isolate port for mobile app

Avoid using the same port between mobile-app vs web-app
Make sure both commands for developing mobile-app & web-app stay alive
Test:
yarn dev is running
yarn dev:mobile is running
This commit is contained in:
Vanalite 2025-09-11 20:42:42 +07:00
parent 3f62c96cd0
commit 712dbf482a
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
"version": "0.6.6",
"type": "module",
"scripts": {
"dev": "vite --port 1421",
"dev": "vite --port 1422",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",

View File

@ -5,7 +5,7 @@
"identifier": "jan.ai.mobile",
"build": {
"frontendDist": "../dist",
"devUrl": "http://localhost:1421",
"devUrl": "http://localhost:1422",
"beforeDevCommand": "yarn dev",
"beforeBuildCommand": "yarn build"
},

View File

@ -28,7 +28,7 @@
"build:mobile": "yarn workspace @janhq/mobile-app build",
"mobile:android": "yarn workspace @janhq/mobile-app tauri:android",
"mobile:ios": "yarn workspace @janhq/mobile-app tauri:ios",
"dev:tauri": "yarn build:icon && yarn copy:assets:tauri && cross-env IS_CLEAN=true tauri dev",
"dev:tauri": "yarn build:icon && yarn copy:assets:tauri && cross-env IS_CLEAN=true RUSTC_WRAPPER= tauri dev",
"copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\" && cpx \"LICENSE\" \"src-tauri/resources/\"",
"download:lib": "node ./scripts/download-lib.mjs",
"download:bin": "node ./scripts/download-bin.mjs",