feat: D1 upgrade: deployment and migration process DONE!

This commit is contained in:
lyc8503 committed 2026-01-03 23:06:32 +08:00
1 parent 0258ae1ddc
commit 3de3640d17
12 files changed
+278 -76

No files matched your search

+4 -1
View File
@@ -49,7 +49,10 @@ export default async function handler(req: NextRequest): Promise<Response> {
await getFromStore(process.env as any, 'state')
)
const lastIncident = compactedState.getIncident(monitorId, compactedState.incidentLen(monitorId) - 1)
const lastIncident = compactedState.getIncident(
monitorId,
compactedState.incidentLen(monitorId) - 1
)
const isUp = lastIncident?.end !== null
const badge: BadgePayload = {