From 6528879894bc30c69faea1acdc3224d852b636a5 Mon Sep 17 00:00:00 2001 From: Ryan Le Date: Tue, 29 Oct 2024 21:27:33 +0700 Subject: [PATCH 1/3] Add console.log for production for test domain --- server/pages/[domain]/index.page.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/pages/[domain]/index.page.tsx b/server/pages/[domain]/index.page.tsx index 346ba71f..24544bee 100644 --- a/server/pages/[domain]/index.page.tsx +++ b/server/pages/[domain]/index.page.tsx @@ -1666,16 +1666,15 @@ export async function getServerSideProps(props: DomainProfileServerSideProps) { } const udMeHostname = new URL(config.UD_ME_BASE_URL).hostname; + if (domain === 'testingdotcom.com') { + console.log('Headers', JSON.stringify({headers: req.headers})); + } // Redirect to the listing page if domain is listed for sale and the host is not ud.me if ( typeof host === 'string' && host !== udMeHostname && profileData?.isListedForSale ) { - console.log( - 'Redirecting to domain listing lander', - JSON.stringify({host, udMeHostname}), - ); return redirectToListingPage; } From 997b8e7e4f12ed3b0391f2d93f569d2a0da43390 Mon Sep 17 00:00:00 2001 From: Ryan Le Date: Tue, 29 Oct 2024 21:29:34 +0700 Subject: [PATCH 2/3] Add non listed domain --- server/pages/[domain]/index.page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pages/[domain]/index.page.tsx b/server/pages/[domain]/index.page.tsx index 24544bee..d9668e53 100644 --- a/server/pages/[domain]/index.page.tsx +++ b/server/pages/[domain]/index.page.tsx @@ -1666,7 +1666,7 @@ export async function getServerSideProps(props: DomainProfileServerSideProps) { } const udMeHostname = new URL(config.UD_ME_BASE_URL).hostname; - if (domain === 'testingdotcom.com') { + if (domain === 'testingdotcom.com' || domain === '0xtesting.nft') { console.log('Headers', JSON.stringify({headers: req.headers})); } // Redirect to the listing page if domain is listed for sale and the host is not ud.me From b4bddeb073d3483214072e0afb058461be7e5ef9 Mon Sep 17 00:00:00 2001 From: Ryan Le Date: Tue, 29 Oct 2024 21:30:25 +0700 Subject: [PATCH 3/3] Change log prefix --- server/pages/[domain]/index.page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pages/[domain]/index.page.tsx b/server/pages/[domain]/index.page.tsx index d9668e53..8dec653b 100644 --- a/server/pages/[domain]/index.page.tsx +++ b/server/pages/[domain]/index.page.tsx @@ -1667,7 +1667,7 @@ export async function getServerSideProps(props: DomainProfileServerSideProps) { const udMeHostname = new URL(config.UD_ME_BASE_URL).hostname; if (domain === 'testingdotcom.com' || domain === '0xtesting.nft') { - console.log('Headers', JSON.stringify({headers: req.headers})); + console.log('Domain profile headers output:', JSON.stringify({headers: req.headers})); } // Redirect to the listing page if domain is listed for sale and the host is not ud.me if (