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.

Merge branch 'main' into partner-account-merge-overlapping-enrollments

Pedro Ladeira1c571c0bde72
diff --cc apps/web/lib/cron/qstash-workflow.ts
index 4a38f8e5ca,62a31e427d..4449cb44f3
--- a/apps/web/lib/cron/qstash-workflow.ts
+++ b/apps/web/lib/cron/qstash-workflow.ts
@@@ -6,12 -6,15 +6,18 @@@ import { Client } from "@upstash/workfl
const client = new Client({
baseUrl: process.env.QSTASH_URL || "https://qstash-us-east-1.upstash.io",
token: process.env.QSTASH_TOKEN || "",
+ ...(process.env.VERCEL_ENV === "preview" && {
+ headers: {
+ "x-vercel-protection-bypass":
+ process.env.VERCEL_AUTOMATION_BYPASS_SECRET || "",
+ },
+ }),
});
-type WorkflowType = "partner-approved" | "create-partner-commission";
+type WorkflowType =
+ | "partner-approved"
+ | "create-partner-commission"
+ | "merge-partner-account";
interface QStashWorkflow {
workflowType: WorkflowType;