Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

even more logs

Steven Tey9f49401a960d
diff --git a/pages/api/projects/[slug]/domains/[domain]/links/[key]/revalidate.ts b/pages/api/projects/[slug]/domains/[domain]/links/[key]/revalidate.ts
index b43dc6fdc8..1552e87b34 100644
--- a/pages/api/projects/[slug]/domains/[domain]/links/[key]/revalidate.ts
+++ b/pages/api/projects/[slug]/domains/[domain]/links/[key]/revalidate.ts
@@ -4,9 +4,12 @@ export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
+ console.log("first received request", req.headers.host);
+
if (req.query.secret !== process.env.REVALIDATE_TOKEN) {
return res.status(401).json({ message: "Invalid token" });
}
+ console.log("valid secret", req.headers.host);
const { domain, key } = req.query as { domain: string; key: string };