Hi everyone,
I’m running into an issue with images in a Shopify Shop App Mini and want to clarify what the correct rules are for bundling static assets.
I have a component like this:
<Image
className=“w-[329px] h-[534px]”
src={‘src/assets/images/my-2.png’}
loading=“lazy”
width={329}
height={534}
/>
When I run the project in dev mode, the image loads normally.
But after I build and submit the Mini for production, the image completely disappears – no errors, just not rendered. No errors about it during the build command execution.
What is the correct way to include static images in a Shop App Mini?