From 0b1fe94a2533dfac12981e25d3abd2fdc3b5161c Mon Sep 17 00:00:00 2001 From: Oyasumi Date: Sat, 3 Jan 2026 00:05:38 +0800 Subject: [PATCH] fix: change frontend port to 8088 --- src-tauri/tauri.conf.json | 2 +- vite.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 7e6d6c0..56a174e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -5,7 +5,7 @@ "identifier": "com.oyasumi.gamelib", "build": { "beforeDevCommand": "pnpm dev", - "devUrl": "http://localhost:1420", + "devUrl": "http://localhost:8088", "beforeBuildCommand": "pnpm build", "frontendDist": "../dist" }, diff --git a/vite.config.ts b/vite.config.ts index 812e61c..9e8dfba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,14 +14,14 @@ export default defineConfig(async () => ({ clearScreen: false, // 2. tauri expects a fixed port, fail if that port is not available server: { - port: 1420, + port: 8088, strictPort: true, host: host || false, hmr: host ? { protocol: "ws", host, - port: 1421, + port: 8089, } : undefined, watch: {