The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix
Steven Tey43365136f648
diff --git a/lib/upstash.ts b/lib/upstash.tsindex 722ad1e9b0..ba875c6a5b 100644--- a/lib/upstash.ts+++ b/lib/upstash.ts@@ -1,7 +1,6 @@import { Ratelimit } from "@upstash/ratelimit";import { Redis } from "@upstash/redis";import { nanoid } from "#/lib/utils";-import { Client } from "@upstash/qstash";// Initiate Redis instance by connecting to REST URLexport const redis = new Redis({@@ -33,10 +32,6 @@ export const ratelimit = (};};-export const qstash = new Client({- token: process.env.QSTASH_TOKEN || "",-});-// only for dub.sh public demoexport async function setRandomKey(url: string,diff --git a/pages/api/projects/[slug]/import/bitly.ts b/pages/api/projects/[slug]/import/bitly.tsindex 8b279cd204..59833f2a0b 100644--- a/pages/api/projects/[slug]/import/bitly.ts+++ b/pages/api/projects/[slug]/import/bitly.ts@@ -2,7 +2,12 @@ import { addDomainToVercel } from "#/lib/api/domains";import { withProjectAuth } from "#/lib/auth";import prisma from "#/lib/prisma";import { BitlyGroupProps } from "#/lib/types";-import { qstash, redis } from "#/lib/upstash";+import { redis } from "#/lib/upstash";+import { Client } from "@upstash/qstash";++const qstash = new Client({+ token: process.env.QSTASH_TOKEN || "",+});export default withProjectAuth(async (req, res, project) => {// get bitly groups and their respective domains