Skip to content

Commit 20f3b09

Browse files
committed
Use Fluid compute for /track/click
1 parent 01e1907 commit 20f3b09

File tree

1 file changed

+1
-3
lines changed
  • apps/web/app/(ee)/api/track/click

1 file changed

+1
-3
lines changed

apps/web/app/(ee)/api/track/click/route.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ import { AxiomRequest, withAxiom } from "next-axiom";
2020
import { NextResponse } from "next/server";
2121
import { z } from "zod";
2222

23-
export const runtime = "edge";
24-
2523
const CORS_HEADERS = {
2624
"Access-Control-Allow-Origin": "*",
2725
"Access-Control-Allow-Methods": "POST, OPTIONS",
@@ -52,7 +50,7 @@ const trackClickResponseSchema = z.object({
5250
}).nullish(),
5351
});
5452

55-
// POST /api/track/click – Track a click event from the client-side
53+
// POST /api/track/click – Track a click event for a link
5654
export const POST = withAxiom(async (req: AxiomRequest) => {
5755
try {
5856
const { domain, key, url, referrer } = trackClickSchema.parse(

0 commit comments

Comments
 (0)