-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed as not planned
Labels
enhancementNew feature or requestNew feature or request
Description
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
In HeadSEO.astro, we deduce the URL of the static images (not generated automatically) from the URL:
openresource.dev/src/components/HeadSEO.astro
Lines 8 to 10 in e313a5f
| if (openGraphData.staticImage) { | |
| const imagePath = canonicalURL.pathname.replaceAll(/\//g, '') | |
| canonicalImageSrc = new URL('images/' + (imagePath ? imagePath : 'index') + '.png', Astro.site); |
However, we aren't sure that this image really exists.
The idea would be to throw an error when running npm run build to inform the developer that the image is missing.
Motivation and context
Avoid having Astro pages without Open Graph images.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request