feat: clean commit without .next

This commit is contained in:
eric
2026-03-26 11:31:57 -05:00
parent e6b9c1dc9b
commit 9a5afd7493
2 changed files with 55 additions and 6 deletions

View File

@@ -115,6 +115,14 @@ def _check_base_url():
@app.on_event("startup")
async def startup_event():
_check_base_url()
# 预热 PocketBase 连接,减少首个业务请求冷启动延迟
try:
from .services.pb import get_pb_client
get_pb_client()
logging.info("PocketBase client warmup done")
except Exception as error:
logging.warning("PocketBase client warmup failed: %s", error)
@app.get("/health")