Closed leovct closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
evm-diff | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 8, 2023 11:23pm |
I've added a few more things.
meta
tag to display the card image preview when sharing a link. For this to work, we need to provide the site URL. At the moment, I set it to https://www.evmdiff.com
(see src/lib/constants.ts
). That's why the preview won't work until we merge this PR to the main
branch (or we change the value of the URL in the PR to test maybe? - I don't know how to predict Vercel's deployment URL, you might need to help me there :) ).base
and target
state up one level from src/components/ChainDiffSelector.tsx
to src/pages/index.tsx
in order to pass it to the Head
component. Thus, card images should be dynamic and display the differences between the selected chains. If no chains are selected, then it will compare the default chains which are Ethereum and Optimism.ChainDiffSelector
in the error div of the Diff
component. Instead, I displayed the list of supported chains with their ids and a link to the default block explorer website (I'd like it to be the chain website/documentation - I suggested to add such field in the @wagmi/chains
repository) and also a link to go back to the homepage where the user can select chains using the UI. I think that if such error happen, that's because the user tried to manually modify the query parameters (either base
or target
) and thus, providing the list of supported chains with their ids should be more than enough. What do you think?robots.txt
to enable bots (especially social media providers) to fetch the card image.base
and target
chains.
Description
Very first draft of dynamic social card images using
@vercel/og
.The design is super ugly but the information required is there.
To check it out, run the server locally and take a look at the following:
0ther
next
version from13.4.0
to13.4.12
to avoid errors when building withpnpm
info - Linting and checking validity of types [webpack.cache.PackFileCacheStrategy] Serializing big strings (685kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
info - Creating an optimized production build ...