Add OG Images to Starlight
1 min read
This guide will show one possible way to add OG images to Starlight.
Steps by steps
Section titled Steps by steps-
Start by installing all packages that need:
-
Create the image endpoint with this code:
-
Override the
<Head/>
component: -
Configure Starlight in the
astro.config.mjs
file:
Up to you to customize the image using the various options provided by astro-og-canvas
↗.