Menu

972 of our pages declare one social image, 121 declare another, and that one is 8000 pixels wide
📰

972 of our pages declare one social image, 121 declare another, and that one is 8000 pixels wide

DEV Community: nextjs·Daniel Pertu·18 days ago
#bt15U892
#devtonextjs#devto#dev#pages#components
Long article (987 words) — no AI summary yet.
Reading 0:00
15s threshold

CogniPrep is a psychometric test practice site. It has 1,093 public URLs, and I went looking for the one place that decides what a link preview looks like.

There isn't one. There are thirteen.

No opengraph-image route anywhere

Next.js will generate a social card for you. Drop an opengraph-image.tsx into a route segment, draw whatever you like with JSX, and the framework renders it, hashes it, and writes the og:image tags.

This repository has none. Zero opengraph-image.* files, zero twitter-image.* files. What it has instead is a single JPEG committed to public/ : 42,286 bytes, 1200 by 628 pixels, committed in July and unchanged since.

That is a defensible choice. A generated card per page costs a render at request time or a build step per URL, and 1,093 URLs is a lot of renders for a picture that says the product name.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.