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
JustinNoel10mo ago
What is your folder structure like? Do you have images in a public directory or something?
Rasheeddev
Rasheeddev10mo ago
Am using sanity api services to host my content. So am logging dynamic data from their endpoint
Mackenly
Mackenly10mo 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
Rasheeddev10mo 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
Mackenly10mo ago
And have you checked your Sanity settings?
Rasheeddev
Rasheeddev9mo ago
I have done the settings. i deployed to vercel everything works well
Mackenly
Mackenly9mo ago
No errors or anything on CF?
Rasheeddev
Rasheeddev9mo ago
Please what do you mean by CF ?
Mackenly
Mackenly9mo ago
Cloudflare
Want results from more Discord servers?
Add your server
More Posts
How to enable CORS for service exposed via CF Tunnels?Does anyone know how to prevent Cloudflare from blocking CORS of a service exposed via CF Tunnels? Adding additional domains to access applicationIs it just me or has the "Add domain" button gone missing on the dashboard? I can't seem to find itGet Sourcemap for compiled _worker.js (i.e. /functionsWorker-<random>.js)When I use workers and set `no_bundle=true` I know excactly what the actual files are gonna look likCron job: Exceeded CPU LimitI have a cron worker which runs per hours and syncs SalesItemPrices between Exact Online and Strapi.Nameservers not updated when moved to cloudflare, how do i contact Cloudflare when on pro planhi all, i bit the bullet and moved nameservers to cloudflare, I checked with support and was told thThere was an error saving the templateHtml is showing generic error, tested on validation and everything seems fine. Need some helpHey Guys i have a db and correspondingHey Guys, i have a db and corresponding preview, but now i can't apply mirgations since it returns aAuthentication error (Code: 10000) (Dashboard UI)I just registered a couple of days ago and get Authentication error (Code: 10000) on the Cloudflare wrangler dev --remote problemWhen I run ' wrangler dev --remote' start the local service, the following error will appear after aOrganization Options in Cloudflare Images: Folders or Alternative Structuring?Hello everyone, I have recently started using Cloudflare Images and find the limit of 100,000 image