Images are not showing after deployment

After deploying my website successfully on cloudfare pages, i found that the images are not showing except the background image, and have tried deploying locally and other platform like vercel it work perfectly. Please how can i resolve it taking a while
9 Replies
JustinNoel
JustinNoel14mo ago
What is your folder structure like? Do you have images in a public directory or something?
Rasheeddev
RasheeddevOP14mo ago
Am using sanity api services to host my content. So am logging dynamic data from their endpoint
Mackenly
Mackenly14mo ago
Not sure what framework or stack you're building with, but for Next I add the following config to the next config. Furthermore within Sanity you need to set the CORS origins for your site.
No description
Rasheeddev
RasheeddevOP14mo ago
Yes have something similar to this but i will try this remotePatterns: [ { protocol: "https", hostname: "cdn.sanity.io", port: "", }, ], Am using next js... and have tried both , the images are not showing
Mackenly
Mackenly14mo ago
And have you checked your Sanity settings?
Rasheeddev
RasheeddevOP14mo ago
I have done the settings. i deployed to vercel everything works well
Mackenly
Mackenly14mo ago
No errors or anything on CF?
Rasheeddev
RasheeddevOP14mo ago
Please what do you mean by CF ?
Mackenly
Mackenly14mo ago
Cloudflare
Want results from more Discord servers?
Add your server