I'm using Gatsby + Strpai and I had a problem with images that are inserted into the body content.
To render content I'm using ReactMarkdown and images that are not found in development & production, I solved this problem by replacing path uploads with assets.
<ReactMarkdown transformImageUri={(uri) => uri.startsWith('http') ? uri : `${process.env.BASE_URL}${uri.replace('uploads', 'static')}` }>
{content}
</ReactMarkdown>
But in production mode, images are still not available since they are not being copied on build time to the public/static folder.
Another workaround for this was to create a static folder at the root of the project and put images there, but they are copied to the public/ instead I want them to be available in public/static
Any way I can achieve this, or maybe you have another suggestion for this kind of problem?