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
How to auto-generate OG images when you publish a new blog post
How-ToWeb Development

How to auto-generate OG images when you publish a new blog post

via Dev.to WebdevCustodia-Admin1mo ago

How to Auto-Generate OG Images When You Publish a New Blog Post Every blog post needs an OG image — the preview card that shows up when someone shares your link on Twitter, LinkedIn, or Slack. Most teams either skip it (broken gray preview) or do it manually in Figma (doesn't scale). The automated alternatives — Satori, @vercel/og , Puppeteer-based generators — all require either a Node.js Edge runtime or a headless browser. Here's the simpler path: one API call, image returned. The pattern publish post → webhook/build hook fires → fetch post data → render HTML card → PageBolt OG image → upload to CDN → update post metadata Ghost CMS webhook // server.js — receives Ghost's post.published webhook import express from " express " ; import { uploadToCDN } from " ./storage.js " ; const app = express (); app . use ( express . json ()); app . post ( " /webhooks/ghost " , async ( req , res ) => { const { post } = req . body ; if ( ! post ?. current ) return res . json ({ ok : true }); const {

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
27 views

Related Articles

What You Need to Know About Building an Outdoor Sauna (2026)
How-To

What You Need to Know About Building an Outdoor Sauna (2026)

Wired • 2d ago

The Boring Skills That Make Developers Unstoppable in 2026
How-To

The Boring Skills That Make Developers Unstoppable in 2026

Medium Programming • 2d ago

I Installed This VS Code Extension… and My Code Got Instantly Better
How-To

I Installed This VS Code Extension… and My Code Got Instantly Better

Medium Programming • 2d ago

The Age of Personalized Software
How-To

The Age of Personalized Software

Medium Programming • 2d ago

Automating Checkout Add-On Recommendations in WordPress for WooCommerce
How-To

Automating Checkout Add-On Recommendations in WordPress for WooCommerce

Dev.to • 2d ago

Discover More Articles