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.

switch Qstash to US region

Steven Teydcc257fe513c
diff --git a/apps/web/lib/cron/index.ts b/apps/web/lib/cron/index.ts
index d278b9e7fd..87184a66a7 100644
--- a/apps/web/lib/cron/index.ts
+++ b/apps/web/lib/cron/index.ts
@@ -1,6 +1,7 @@
import { Client } from "@upstash/qstash";
export const qstash = new Client({
+ baseUrl: "https://qstash-us-east-1.upstash.io",
token: process.env.QSTASH_TOKEN || "",
});
diff --git a/apps/web/lib/cron/qstash-workflow.ts b/apps/web/lib/cron/qstash-workflow.ts
index 2eaf68521f..e012f736f9 100644
--- a/apps/web/lib/cron/qstash-workflow.ts
+++ b/apps/web/lib/cron/qstash-workflow.ts
@@ -2,6 +2,7 @@ import { APP_DOMAIN_WITH_NGROK, log } from "@dub/utils";
import { Client } from "@upstash/workflow";
const client = new Client({
+ baseUrl: "https://qstash-us-east-1.upstash.io",
token: process.env.QSTASH_TOKEN || "",
});