Skip to content

Commit

Permalink
fix minter success page
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Feb 19, 2024
1 parent 2884dc5 commit a0db3aa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions minter/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,28 @@ export async function generateMetadata(): Promise<Metadata> {


let pageTitle = "Mintbase Minter Example";
let pageDescription = "Learn how to Mint NFTs on NEAR with Mintbase Minter Example"

// Check if signMeta exists in the URL
const signMeta = referer ? extractSignMeta(referer) : "";
if (signMeta) {
const signMetaData = JSON.parse(decodeURIComponent(signMeta));

pageTitle = `Success! You just minted: ${signMetaData?.args?.title}`;

pageDescription = `Just Minted ${signMetaData?.args?.title} on Mintbase`
// Now you can further process the extracted signMeta value
}

return {
metadataBase: new URL("https://minter.mintbase.xyz"),
title: pageTitle,
openGraph: {
title: "Mintbase Drop",
description: "Claim this drop for free with the Mintbase Wallet.",
title:pageTitle,
description: pageDescription,
},
twitter: {
title: "Mintbase Minter Example",
description: "Claim this drop for free with the Mintbase Wallet.",
title: pageTitle,
description: pageDescription,
siteId: "1467726470533754880",
creator: "Mintbase",
card: "summary_large_image",
Expand Down

0 comments on commit a0db3aa

Please sign in to comment.