nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
400 stars 25 forks source link

feat: og images for error pages #81

Open dargmuesli opened 1 year ago

dargmuesli commented 1 year ago

Clear and concise description of the problem

I'd like nuxt-og-image to render og images for error pages. Currently https://creal.jonas-thelemann.de/does-not-exist/__og_image__/og.png (you cannot click on the link, must copy and paste) shows image instead of an image (I'll fix the layout, I promise)

Suggested solution

An image should show up with the error page's title and description, like

image

Alternative

No response

Additional context

An internal $fetch errors because /does-not-exist does not exist, thus throwing a 500 on the og.png route itself.

harlan-zw commented 1 year ago

Good idea :+1: