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.

Merge branch 'main' into improve-domains

Steven Tey058045dd032c
diff --cc apps/web/app/api/domains/[domain]/route.ts
index d527b428af,5352cb7fd9..e4052a60c7
--- a/apps/web/app/api/domains/[domain]/route.ts
+++ b/apps/web/app/api/domains/[domain]/route.ts
@@@ -88,11 -89,9 +89,12 @@@ export const PATCH = withWorkspace
...(placeholder && { placeholder }),
...(workspace.plan != "free" && {
expiredUrl,
+ notFoundUrl,
}),
},
+ include: {
+ registeredDomain: true,
+ },
});
waitUntil(
diff --cc apps/web/lib/types.ts
index 003fa767d9,6172d5c9c2..fc9b368044
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@@ -120,8 -120,8 +120,9 @@@ export interface DomainProps
archived: boolean;
placeholder?: string;
expiredUrl?: string;
+ notFoundUrl?: string;
projectId: string;
+ link?: LinkProps;
registeredDomain?: RegisteredDomainProps;
}
diff --cc apps/web/tests/domains/index.test.ts
index 5213819442,363accf787..bfa42f3c7e
--- a/apps/web/tests/domains/index.test.ts
+++ b/apps/web/tests/domains/index.test.ts
@@@ -19,9 -20,9 +20,10 @@@ const expectedDomain =
archived: false,
placeholder: domainRecord.placeholder,
expiredUrl: domainRecord.expiredUrl,
+ notFoundUrl: domainRecord.notFoundUrl,
createdAt: expect.any(String),
updatedAt: expect.any(String),
+ registeredDomain: null,
};
describe.sequential("/domains/**", async () => {