Full Toolkit for Next-Level Domain Analysis
Fix formatting of sponsor URLs ✅
Felix Wotschofskyd2bf2c748ea5
diff --git a/app/(landing)/_components/sponsors-section.tsx b/app/(landing)/_components/sponsors-section.tsxindex 59c28b6..66dfadd 100644--- a/app/(landing)/_components/sponsors-section.tsx+++ b/app/(landing)/_components/sponsors-section.tsx@@ -20,9 +20,13 @@ export const SponsorsSection: FC<SponsorsSectionProps> = async ({...props}) => {const buildSponsorUrl = (baseUrl: string) => {- const url = new URL(baseUrl);- url.searchParams.set('ref', 'domain-digger');- return url.toString();+ try {+ const url = new URL(baseUrl);+ url.searchParams.set('ref', 'domain-digger');+ return url.toString();+ } catch (_) {+ return `https://${baseUrl}?ref=domain-digger`;+ }};const githubSponsors = await getGitHubSponsors('wotschofsky');