diff --git a/package.json b/package.json index d1762ce25..45b8460c2 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "@sentry/nextjs": "^7.85.0", "@types/uuid": "^9.0.1", "@vercel/og": "^0.5.20", - "chrome-aws-lambda": "^10.1.0", "dayjs": "^1.11.6", "eslint-config-next": "^14.1.0", "framer-motion": "^6.3.6", @@ -41,7 +40,6 @@ "next": "^14.1.0", "openapi-typescript-fetch": "^1.1.3", "posthog-js": "^1.93.6", - "puppeteer-core": "^22.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-hotkeys-hook": "^4.0.4", diff --git a/pages/[chain]/asset/[assetId].tsx b/pages/[chain]/asset/[assetId].tsx index a08d9bc43..68891ca1e 100644 --- a/pages/[chain]/asset/[assetId].tsx +++ b/pages/[chain]/asset/[assetId].tsx @@ -228,6 +228,7 @@ const IndexPage: NextPage = ({ assetId, ssr }) => { const base64EncodedToken = btoa(JSON.stringify(token)) + console.log(`/api/og/token?token=${encodeURIComponent(base64EncodedToken)}`) return ( = ({ id, ssr }) => { return ( res.arrayBuffer()), + fetch( `https://github.com/reservoirprotocol/marketplace-v2/raw/dev/public/fonts/Inter-Regular.ttf` ).then((res) => res.arrayBuffer()), @@ -115,7 +116,7 @@ export default async function handler(request: NextRequest) {
- - ERC-721 - - on{' '} -
- { - chains.find((chain) => chain.id === token.token?.chainId) - ?.name - } -
+ ERC-721 + {' '} + + on + {' '} + { + chains.find((chain) => chain.id === token.token?.chainId) + ?.name + }
@@ -216,7 +207,7 @@ export default async function handler(request: NextRequest) { > @@ -224,7 +215,7 @@ export default async function handler(request: NextRequest) { {token.market?.floorAsk?.price?.amount?.native} {' '} @@ -241,7 +232,7 @@ export default async function handler(request: NextRequest) { > @@ -249,10 +240,11 @@ export default async function handler(request: NextRequest) { - {token.market?.topBid?.price?.amount?.native} {' '} + {token.market?.topBid?.price?.amount?.native?.toFixed(2)}{' '} + {' '} {token.market?.floorAsk?.price?.currency?.symbol?.toUpperCase()}
@@ -260,13 +252,20 @@ export default async function handler(request: NextRequest) {
-
{new Date().toLocaleDateString()}
+
+ {new Date().toLocaleDateString()} +
- - - - - - - - - - - - - - - - - - - - - - - - -
- {token.token?.name} - -
-
-

- {token.token?.name} -

-
-
-

- Floor Price -

-
- Currency - {token.market?.floorAsk?.price?.amount?.native} -
-
-
- Market Source -

- {token.market?.floorAsk?.source?.name} -

-
-
-
-
- ), - { - width: 1200, - height: 630, - fonts: [ - { - name: 'Black', + weight: 800, data: blackFont, style: 'normal', }, { name: 'Regular', + weight: 500, data: regularFont, style: 'normal', },