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.

final changes

Steven Teya3b12aefcf61
diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.ts
index 86a2f64772..2287375900 100644
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@ -112,7 +112,7 @@ export interface RedisDomainProps {
url?: string;
rewrite?: boolean;
iframeable?: boolean;
- projectId?: string;
+ projectId: string;
}
export interface BitlyGroupProps {
diff --git a/apps/web/lib/upstash.ts b/apps/web/lib/upstash.ts
index 6c62a28fb4..fe298c7fc3 100644
--- a/apps/web/lib/upstash.ts
+++ b/apps/web/lib/upstash.ts
@@ -1,4 +1,4 @@
-import { getDomainWithoutWWW, isDubDomain, isIframeable } from "@dub/utils";
+import { getDomainWithoutWWW, isIframeable } from "@dub/utils";
import { Ratelimit } from "@upstash/ratelimit";
import { Redis } from "@upstash/redis";
import {
@@ -92,7 +92,7 @@ export async function formatRedisLink(
...(ios && { ios }),
...(android && { android }),
...(geo && { geo: geo as object }),
- ...(projectId && { projectId }),
+ ...(projectId && { projectId }), // for anonymous links
};
}
@@ -109,6 +109,6 @@ export async function formatRedisDomain(
rewrite: true,
iframeable: await isIframeable({ url, requestDomain: slug }),
}),
- ...(projectId && { projectId }),
+ projectId,
};
}
diff --git a/apps/web/scripts/migrate-redis.ts b/apps/web/scripts/migrate-redis.ts
deleted file mode 100644
index 4948e2dc25..0000000000
--- a/apps/web/scripts/migrate-redis.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import "dotenv-flow/config";
-import prisma from "@/lib/prisma";
-import { redis } from "./utils";
-
-async function main() {}
-
-main();