fix: dev 端口 1420→1430 避免占用冲突

This commit is contained in:
lanrtop 2026-06-19 11:39:11 +09:00
parent 8afb16480a
commit 5b28cb351c
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"identifier": "com.yangzhixiang.dev-manager-tauri",
"build": {
"beforeDevCommand": "pnpm dev",
"devUrl": "http://localhost:1420",
"devUrl": "http://localhost:1430",
"beforeBuildCommand": "pnpm build",
"frontendDist": "../dist"
},

View File

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