I know that in Astro we can get images by importing them in our frontmatter, but how do we get images in our own codebase based on its file path?
For example, I want to display a hero image that is based on the image that is added in the git-based cms. It's already inside of the codebase.
The codebase has access to that image file path with caseStudy.data.ogImage, but this would not work:
<img src={caseStudy.data.ogImage} />
Any ideas on how to tackle that?
damn
wildly confused seeing JSX expression without them**``**