Add /api/health and harden Docker deploy script for API route rollout.

404 on /api/ai indicates stale container; deploy script now uses --no-cache, stops PM2/port conflicts, and verifies /api/health.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 22:42:28 +08:00
parent dba0245cb1
commit 38bbc7145a
4 changed files with 46 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
export async function GET() {
return Response.json({
ok: true,
service: "zhimingge",
apiAi: true,
build: "dba0245+",
});
}