1
mirror of https://github.com/jakejarvis/hoot.git synced 2025-10-18 20:14:25 -04:00
Files
hoot/app/api/inngest/route.ts

14 lines
520 B
TypeScript

import { serve } from "inngest/next";
import { inngest } from "@/server/inngest/client";
import { domainInspected } from "@/server/inngest/functions/domain-inspected";
import { scanDue } from "@/server/inngest/functions/scan-due";
import { sectionRevalidate } from "@/server/inngest/functions/section-revalidate";
// opt out of caching per Inngest docs
export const dynamic = "force-dynamic";
export const { GET, POST, PUT } = serve({
client: inngest,
functions: [sectionRevalidate, domainInspected, scanDue],
});