Skip to content

Link preview image for nirium.xyz/avalanche - #33

Merged
M0nsxx merged 1 commit into
mainfrom
feat/og-preview
Nov 28, 2026
Merged

M0nsxx merged 1 commit into
mainfrom
feat/og-preview

Conversation

@Eras256

@Eras256 Eras256 commented Nov 28, 2026

Copy link
Copy Markdown
Member

Links to nirium.xyz/avalanche showed up in Telegram and X with no image, because the demo had no openGraph or twitter tags.

What changes:

  • apps/demo/public/og.png: 1200x630 card, same layout as nirium.xyz's preview (/og/home), in the Avalanche colors the demo icon already uses. No chain logo.
  • layout.tsx: og and twitter tags with absolute URLs, since basePath is not added to metadata images.
  • explorer/page.tsx: its own title and og:url, same image.

Checked locally: tsc OK, tests pass, next build OK, and next start serves the tags on /avalanche and /avalanche/explorer plus /avalanche/og.png (200, image/png).

Not deployed. Telegram caches previews, so a link already sent keeps the old one until it is refreshed.

🤖 Generated with Claude Code

Links to nirium.xyz/avalanche showed no image in Telegram and X: the app
had no openGraph or twitter metadata. Adds a 1200x630 card in the same
layout as nirium.xyz's own preview, with the Avalanche colors already used
by the demo's icon, and the og/twitter tags with absolute URLs (basePath
is not added to metadata images). The explorer gets its own og:url and
title, same image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@M0nsxx M0nsxx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted review (Claude)

Read the diff: og.png at 1200x630, og/twitter tags in layout.tsx with absolute nirium.xyz URLs (basePath isn't applied to metadata images), and the explorer's own title and og:url with the same image. Only these 3 files change, no logic. tsc, tests and next build pass, and next start serves the tags on the home page and /explorer. LGTM.

@M0nsxx
M0nsxx merged commit c8e0fe8 into main Nov 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants