Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Add meta tags for NFT minting (#2550)
Browse files Browse the repository at this point in the history
  • Loading branch information
intergalacticspacehighway committed Nov 23, 2023
1 parent 85756e6 commit 3ad309e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/next/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ function App({ Component, pageProps, router }: AppProps) {
<meta name="eth:nft:schema" content={meta.nftSchema} />
)}
{meta.nftChain && <meta name="eth:nft:chain" content={meta.nftChain} />}
{meta.nftMintUrl && (
<meta name="eth:nft:mint_url" content={meta.nftMintUrl} />
)}
</>
) : (
<>
Expand Down
6 changes: 6 additions & 0 deletions apps/next/src/pages/profile/[username]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export async function getServerSideProps(context) {
title,
description: user.data.profile.bio,
image: user.data.profile.img_url,
nftCollection: user.data.profile.username,
nftContractAddress: user.data.profile.creator_token.address,
nftCreatorAddress: user.data.profile.primary_wallet.address,
nftSchema: "erc721",
nftChain: "base",
nftMintUrl: `https://${process.env.NEXT_PUBLIC_WEBSITE_DOMAIN}/@${user.data.profile.username}`,
},
},
};
Expand Down

0 comments on commit 3ad309e

Please sign in to comment.