feat: add external funnel monitoring and conversion alerts
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s

This commit is contained in:
OG T
2026-06-07 16:40:38 +08:00
parent 7c4841c27d
commit 71a765d1de
5 changed files with 271 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import { prisma } from "@/lib/prisma";
import { TaskStatus } from "@agent-bounty/contracts";
import { sendTrafficAlert } from "@/lib/traffic-alert";
import { isIP } from "node:net";
import { evaluateExternalFunnelHealth } from "@/lib/traffic-conversion-monitor";
export const dynamic = "force-dynamic";
@@ -235,6 +236,13 @@ export async function GET(request: Request) {
}
}).catch(() => {});
if (isPublicIp) {
void evaluateExternalFunnelHealth({
surface: "public-open-tasks",
periodMinutes: 10,
});
}
return NextResponse.json({
platform: "VibeWork",
version: "v1",