I wanted to set a custom og image but it is not working, it is still generating an og image but I wanted to provide my own custom one. I can see that the other properties like width, height and alt worked but the image path is wrong.
I tried both paths but neither worked http://localhost:3000/my-og.png or /my-og.png
---
title: "Building Your First API with Express.js: A Beginner's Guide"
description: "A beginner-friendly guide to building your first API with Express.js"
published: 2023/11/2
path: /building-your-first-api-with-expressjs-a-beginners-guide
showOgImage: true
ogImage:
url: http://localhost:3000/my-og.png
width: 1200,
height: 600,
alt: 'My Image'
---
The image path should be http://localhost:3000/my-og.png not http://localhost:3000/__og-image__/image/building-your-first-api-with-expressjs-a-beginners-guide/og.png
Describe the bug
I wanted to set a custom og image but it is not working, it is still generating an og image but I wanted to provide my own custom one. I can see that the other properties like width, height and alt worked but the image path is wrong.
I tried both paths but neither worked
http://localhost:3000/my-og.png
or/my-og.png
Result:
The image path should be
http://localhost:3000/my-og.png
nothttp://localhost:3000/__og-image__/image/building-your-first-api-with-expressjs-a-beginners-guide/og.png
Screenshot:
Reproduction
No response
System / Nuxt Info
No response