Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix

Marc Seitz2200dc17a7ed
diff --git a/components/domains/domain-configuration.tsx b/components/domains/domain-configuration.tsx
index fa9437c3..09d069ce 100644
--- a/components/domains/domain-configuration.tsx
+++ b/components/domains/domain-configuration.tsx
@@ -105,8 +105,9 @@ export default function DomainConfiguration({
name: recordType === "A" ? "@" : (subdomain ?? "www"),
value:
recordType === "A"
- ? (configJson.recommendedIPv4[0].value[0] ?? "76.76.21.21")
- : (configJson.recommendedCNAME[0].value ??
+ ? (configJson?.recommendedIPv4?.[0]?.value?.[0] ??
+ "76.76.21.21")
+ : (configJson?.recommendedCNAME?.[0]?.value ??
"cname.vercel-dns.com"),
ttl: "86400",
},