We have a website build using Next.js 10.x and hosting it on Netlify. It’s a public repo https://github.com/livechat/livechat-public-docs and a netlify url is https://livechat-public-docs.netlify.app.
Our website has
basePath: /docs in the next.config.js.
One of my component is using:
<Image src="/docs/images/livechat-platform-messaging.jpg" width="782" height="682" />
I added the
/docs as suggested by Next.js docs. This is working locally.
However on netlify it doesn’t. I was trying to find some solutions on this forum but couldn’t.
This is the PR I created to test it: Image next testing by jakubsikora · Pull Request #1017 · livechat/livechat-public-docs · GitHub.
Test url: https://612544f120aecb0008118c5c--livechat-public-docs.netlify.app/
There is the request for the image:
Could you please advise if there is a workaround for it or something I’m missing?