You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my frontmatter for my upcoming blog i want to have the ability to a specify a path to an image which will be optimized and end up in the Open Graph attributes for the given page. To do so I need the ability to dynamically get an url for the optimized asset. When doing await import(props.ogImage) it works fine in the dev server but the import fails when building the page. renderImg works but returns HTML for an img tag, I only need to obtain the path to the optimized image. importRemoteImage also doesn't work for my local assets.
Is there a good way to do what i want using this project besides parsing the resulting html?
The text was updated successfully, but these errors were encountered:
In my frontmatter for my upcoming blog i want to have the ability to a specify a path to an image which will be optimized and end up in the Open Graph attributes for the given page. To do so I need the ability to dynamically get an url for the optimized asset. When doing
await import(props.ogImage)
it works fine in the dev server but the import fails when building the page.renderImg
works but returns HTML for an img tag, I only need to obtain the path to the optimized image. importRemoteImage also doesn't work for my local assets.Is there a good way to do what i want using this project besides parsing the resulting html?
The text was updated successfully, but these errors were encountered: