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.

Delete domain.ts

Kiran K8d304f5a45af
diff --git a/apps/web/scripts/domain.ts b/apps/web/scripts/domain.ts
deleted file mode 100644
index 4bc9b0f9c0..0000000000
--- a/apps/web/scripts/domain.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { createId } from "@/lib/api/create-id";
-import { prisma } from "@dub/prisma";
-import "dotenv-flow/config";
-
-async function main() {
- const domain = await prisma.domain.create({
- data: {
- id: createId({ prefix: "dom_" }),
- slug: "thomas.link",
- verified: true,
- projectId: "ws_1K1J9DXEDB3W9XT51Z2849M8Y",
- },
- });
-
- const registerDomain = await prisma.registeredDomain.create({
- data: {
- id: createId({ prefix: "dom_" }),
- slug: domain.slug,
- projectId: domain.projectId!,
- domainId: domain.id,
- expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
- },
- });
-
- console.log(domain, registerDomain);
-}
-
-main();