The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
SINGULAR_TOKEN → SINGULAR_WEBHOOK_TOKEN
Steven Teyf67888404afb
diff --git a/apps/web/.env.example b/apps/web/.env.exampleindex 724b0f681e..a144ead0e0 100644--- a/apps/web/.env.example+++ b/apps/web/.env.example@@ -150,4 +150,4 @@ STRIPE_APP_SECRET_KEY=FIRECRAWL_API_KEY=# Set a global token to identify Singular events-SINGULAR_TOKEN=\ No newline at end of file+SINGULAR_WEBHOOK_TOKEN=\ No newline at end of filediff --git a/apps/web/app/(ee)/api/singular/webhook/route.ts b/apps/web/app/(ee)/api/singular/webhook/route.tsindex 884b22d53e..1c19557f70 100644--- a/apps/web/app/(ee)/api/singular/webhook/route.ts+++ b/apps/web/app/(ee)/api/singular/webhook/route.ts@@ -27,7 +27,7 @@ const authSchema = z.object({.describe(" Unique to identify the advertiser."),});-const singularToken = process.env.SINGULAR_TOKEN;+const singularToken = process.env.SINGULAR_WEBHOOK_TOKEN;// GET /api/singular/webhook – listen to Postback events from Singularexport const GET = async (req: Request) => {@@ -35,7 +35,8 @@ export const GET = async (req: Request) => {if (!singularToken) {throw new DubApiError({code: "bad_request",- message: "SINGULAR_TOKEN is not set in the environment variables.",+ message:+ "SINGULAR_WEBHOOK_TOKEN is not set in the environment variables.",});}