@echo off echo ======================================== echo 清除快取並重啟前端服務 echo ======================================== cd /d %~dp0frontend echo. echo [1/4] 刪除 .next 快取目錄... if exist .next rmdir /s /q .next if exist .next\cache rmdir /s /q .next\cache echo. echo [2/4] 刪除 node_modules/.cache... if exist node_modules\.cache rmdir /s /q node_modules\.cache echo. echo [3/4] 等待 3 秒... timeout /t 3 /nobreak > nul echo. echo [4/4] 啟動開發伺服器 (Port 10180)... echo. echo ======================================== echo 前端服務將在 http://10.1.0.245:10180 啟動 echo 按 Ctrl+C 停止服務 echo ======================================== echo. npm run dev pause