I'm saving images dynamically. Images stores in public folder of NextJS project.
Path to get image is /public/upload/catalog/{imagename}
As said in NextJS documentation about access to public folder, I'm trying to get this image by path /upload/catalog/{imagename}
And it's perfectly works in development
env, but in production
I can't access the image.
Example from code of Image component:
<Image
src={src} //src === "/upload/catalog/1644916867663.jpg"
width={width || '50'}
height={height || '50'}
objectFit={objectFit || 'cover'}
alt='image'
/>