We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e1907 commit 20f3b09Copy full SHA for 20f3b09
apps/web/app/(ee)/api/track/click/route.ts
@@ -20,8 +20,6 @@ import { AxiomRequest, withAxiom } from "next-axiom";
20
import { NextResponse } from "next/server";
21
import { z } from "zod";
22
23
-export const runtime = "edge";
24
-
25
const CORS_HEADERS = {
26
"Access-Control-Allow-Origin": "*",
27
"Access-Control-Allow-Methods": "POST, OPTIONS",
@@ -52,7 +50,7 @@ const trackClickResponseSchema = z.object({
52
50
}).nullish(),
53
51
});
54
55
-// POST /api/track/click – Track a click event from the client-side
+// POST /api/track/click – Track a click event for a link
56
export const POST = withAxiom(async (req: AxiomRequest) => {
57
try {
58
const { domain, key, url, referrer } = trackClickSchema.parse(
0 commit comments