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.

fix configureDNS

Steven Teye75e9aa85a18
diff --git a/apps/web/lib/dynadot/configure-dns.ts b/apps/web/lib/dynadot/configure-dns.ts
index d8303819f9..82244b1edf 100644
--- a/apps/web/lib/dynadot/configure-dns.ts
+++ b/apps/web/lib/dynadot/configure-dns.ts
@@ -1,13 +1,5 @@
-import z from "@/lib/zod";
import { DYNADOT_API_KEY, DYNADOT_BASE_URL } from "./constants";
-const schema = z.object({
- SetDnsResponse: z.object({
- ResponseCode: z.number(),
- Status: z.string(),
- }),
-});
-
export const configureDNS = async ({ domain }: { domain: string }) => {
const searchParams = new URLSearchParams({
key: DYNADOT_API_KEY,
@@ -30,7 +22,5 @@ export const configureDNS = async ({ domain }: { domain: string }) => {
throw new Error(`Failed to configure domain DNS: ${response.statusText}`);
}
- const data = schema.parse(await response.json());
-
- return data;
+ return response.json();
};
diff --git a/apps/web/ui/modals/register-domain-success-modal.tsx b/apps/web/ui/modals/register-domain-success-modal.tsx
index a461e4b592..54abc87255 100644
--- a/apps/web/ui/modals/register-domain-success-modal.tsx
+++ b/apps/web/ui/modals/register-domain-success-modal.tsx
@@ -41,13 +41,10 @@ const RegisterDomainSuccess = ({
{registered}
</p>
<p className="mt-4 text-sm text-gray-500">
- Your domain is now registered and ready to use.
- </p>
- <p className="mt-2 text-sm text-gray-500">
- It may take some time for the domain configuration to propagate
- globally.{" "}
+ Your domain is now registered and ready to use, though it may take
+ some time for the domain configuration to propagate globally.{" "}
<a
- href="https://dub.co/help/article/how-to-add-custom-domain#how-long-do-i-have-to-wait-for-my-domain-to-work"
+ href="https://dub.co/help/article/free-dot-link-domain#claim-your-domain-and-wait-for-it-to-be-provisioned"
target="_blank"
className="underline transition-colors hover:text-gray-700"
>