Skip to content

Commit

Permalink
Merge pull request #218 from unstoppabledomains/ryan/log-props
Browse files Browse the repository at this point in the history
Log resolvedUrl
  • Loading branch information
sudoryan authored Oct 29, 2024
2 parents e79a4ed + df524a5 commit 442066f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion server/pages/[domain]/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,28 @@ 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('Domain profile headers output:', JSON.stringify({headers: req.headers}));
console.log(
'Profile page getServerSideProps output:',
JSON.stringify(
{
props: {
resolvedUrl: props.resolvedUrl,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
pathname: (props as any).pathname,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
asPath: (props as any).asPath,
query: props.query,
params: props.params,
},
headers: {
...req.headers,
},
url: req.url,
},
null,
2,
),
);
}
// Redirect to the listing page if domain is listed for sale and the host is not ud.me
if (
Expand Down

0 comments on commit 442066f

Please sign in to comment.