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
What is your folder structure like? Do you have images in a public directory or something?
Am using sanity api services to host my content. So am logging dynamic data from their endpoint
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.
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
And have you checked your Sanity settings?
I have done the settings.
i deployed to vercel everything works well
No errors or anything on CF?
Please what do you mean by CF ?
Cloudflare