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.

revert

Kiran K011f64a5e72f
diff --git a/apps/web/app/api/cron/domains/verify/route.ts b/apps/web/app/api/cron/domains/verify/route.ts
index 2bba5870fe..9ebb11bc94 100644
--- a/apps/web/app/api/cron/domains/verify/route.ts
+++ b/apps/web/app/api/cron/domains/verify/route.ts
@@ -21,7 +21,7 @@ export const dynamic = "force-dynamic";
export async function GET(req: Request) {
try {
- // await verifyVercelSignature(req);
+ await verifyVercelSignature(req);
const result = await prisma.domain.findMany({
where: {
diff --git a/apps/web/lib/api/errors.ts b/apps/web/lib/api/errors.ts
index bcce883c9a..0a337ce0a6 100644
--- a/apps/web/lib/api/errors.ts
+++ b/apps/web/lib/api/errors.ts
@@ -118,7 +118,7 @@ export function fromZodError(error: ZodError): ErrorResponse {
}
export function handleApiError(error: any): ErrorResponse & { status: number } {
- console.error("API error occurred", error.message);
+ console.error("API error occurred", error);
// Zod errors
if (error instanceof ZodError) {