fix: dev 端口 1420→1430 避免占用冲突
This commit is contained in:
parent
8afb16480a
commit
5b28cb351c
@ -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"
|
||||
},
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user