chore: change the default port of the tauri project (#999)

This commit is contained in:
BiggerRain
2025-12-05 09:38:54 +08:00
committed by GitHub
parent 8158d49050
commit 82074ab46a
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
"identifier": "rs.coco.app",
"build": {
"beforeDevCommand": "pnpm dev",
"devUrl": "http://localhost:1420",
"devUrl": "http://localhost:6060",
"beforeBuildCommand": "pnpm build",
"frontendDist": "../dist"
},
@@ -169,4 +169,4 @@
},
"os": {}
}
}
}

View File

@@ -26,14 +26,14 @@ export default defineConfig(async () => ({
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
port: 1420,
port: 6060,
strictPort: true,
host: host || false,
hmr: host
? {
protocol: "ws",
host,
port: 1421,
port: 6061,
}
: undefined,
watch: {