Default URL structure is http://localhost:5000/_next/image?url="someURL".
I want the URL to be like http://localhost:5000/demo/_next/image?url="someURL".
which can be achieved by
// next.config.js
images: {
domains: ['example.domain.com'],
path: `/demo/_next/image`
},
In this, the _next/image where the directory is pointing cannot be found.
After this, all the images are giving 404. I need a solution to this problem in the next js.