From fa174869165b44dcebc8c27be383c7067b78ada4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdongming=E2=80=9D?= <“lidongming@aituringflow.com”> Date: Mon, 29 Dec 2025 01:08:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BC=BA=E5=88=B6=E4=B8=BA=E5=8D=95?= =?UTF-8?q?=E5=AE=9E=E4=BE=8B=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 63c5d36..b348f44 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,9 @@ pnpm-debug.log* # macOS-specific files .DS_Store +# dev server pid +.dev.pid + # jetbrains setting folder .idea/ .pnpm-store diff --git a/package.json b/package.json index ccbc09e..ac206a0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "version": "0.0.1", "scripts": { - "dev": "astro dev", + "dev": "[ -f .dev.pid ] && kill -0 $(cat .dev.pid) 2>/dev/null && echo '开发服务器已在运行 (PID: '$(cat .dev.pid)')' || (astro dev & echo $! > .dev.pid)", "build": "astro build", "preview": "astro preview", "astro": "astro"