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.

make placeholder nullable

Steven Teyea2dbd8f2209
diff --git a/apps/web/lib/zod/schemas/domains.ts b/apps/web/lib/zod/schemas/domains.ts
index 39355b739e..7ab19ed9d0 100644
--- a/apps/web/lib/zod/schemas/domains.ts
+++ b/apps/web/lib/zod/schemas/domains.ts
@@ -22,10 +22,10 @@ export const DomainSchema = z.object({
.default(false),
placeholder: z
.string()
+ .nullable()
.describe(
"Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.",
)
- .default("https://dub.co/help/article/what-is-dub")
.openapi({ example: "https://dub.co/help/article/what-is-dub" }),
expiredUrl: z
.string()
diff --git a/apps/web/prisma/schema/domain.prisma b/apps/web/prisma/schema/domain.prisma
index bb5f1a610f..9216da579c 100644
--- a/apps/web/prisma/schema/domain.prisma
+++ b/apps/web/prisma/schema/domain.prisma
@@ -2,7 +2,7 @@ model Domain {
id String @id @default(cuid())
slug String @unique
verified Boolean @default(false)
- placeholder String @default("https://dub.co/help/article/what-is-dub")
+ placeholder String?
expiredUrl String? @db.LongText // URL to redirect to for expired links
notFoundUrl String? @db.LongText // URL to redirect to for links that don't exist
primary Boolean @default(false)