diff --git a/src/components/Meta.astro b/src/components/Meta.astro index f0ae831..f6fd70c 100644 --- a/src/components/Meta.astro +++ b/src/components/Meta.astro @@ -20,7 +20,9 @@ const URL = `${Astro.site}`; // Set the website URL in astro.config.mjs const author = SITE.author; const ogTitle = OG.title; const ogDescription = OG.description; -const socialImage: string = `${Astro.site}/social.png`; // Set the path for the social media image +const socialImageRes = await getImage({ src: OG.image, width: 1200, height: 600 }); +const socialImage = Astro.url.origin + socialImageRes.src; // Get the full URL of the image (https://stackoverflow.com/a/9858694) + ---