FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Your link previews look broken. Here's a one-line fix.
How-ToWeb Development

Your link previews look broken. Here's a one-line fix.

via Dev.to TutorialNarender singh3h ago

Your link previews on Twitter and LinkedIn probably look broken. Or they show your favicon at 50x50 pixels. Or there's no image at all and the link gets scrolled past. This happens because you either don't have an og:image meta tag, or it points to something that wasn't designed for 1200x630. I fixed this for my own projects by building an API that generates the image from URL parameters. No Figma, no uploading files, no manual work per page. How it works Your meta tag looks like this: <meta property= "og:image" content= "https://ogpix-pi.vercel.app/api/og?title=My+Blog+Post&theme=dark" /> When someone shares your link, the platform hits that URL, gets back a 1200x630 PNG, and your preview looks good. The image is generated on the fly from the query parameters. You can set the title, description, and pick from 10 themes. The images get cached at the CDN edge, so after the first request it's basically instant. Next.js example If you're using Next.js with the app router, you can generate

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

IntentCAD v0.8.0 — Thirteen EPICs, One Day
How-To

IntentCAD v0.8.0 — Thirteen EPICs, One Day

Dev.to • 3h ago

A Growing Position Doesn't Always Mean Fresh Buying — Here's How to Tell
How-To

A Growing Position Doesn't Always Mean Fresh Buying — Here's How to Tell

Dev.to Beginners • 3h ago

Tutorials Are Lying to You Here’s What Actually Works ?
How-To

Tutorials Are Lying to You Here’s What Actually Works ?

Medium Programming • 6h ago

Flutter Mistakes That Make Apps Slow ⚡
How-To

Flutter Mistakes That Make Apps Slow ⚡

Medium Programming • 7h ago

Welcome Thread - v370
How-To

Welcome Thread - v370

Dev.to • 7h ago

Discover More Articles