Image offloading in nextjs and vercel?

So a site i made is getting some traffic and this has spiked fear into me, (i dont wanna get a huge bill) im using the next Image comp, but i have the images already offloaded on sirv, and when i build th eproject nextjs caches the images and uses the cached images, currently the <Image src='cdn_link' /> how can I let nextjs ont optimize/cache the image and let it load from the cdn instead of caching on build? I hope i understand this correctly myself? for some more context this is the image opt usage and by not using cache it would go back down to ~250MB
No description
11 Replies
Iberius
IberiusOP10mo ago
No description
Neto
Neto10mo ago
remove Image and use img
Iberius
IberiusOP10mo ago
can i use Image and use the unoptimized tag?
Neto
Neto10mo ago
nop the Image component is deeply tied to vercel
Iberius
IberiusOP10mo ago
or like a custom loader?
No description
Iberius
IberiusOP10mo ago
since im using a cdn already for the iamges
Neto
Neto10mo ago
maybe, i dont know too much about the Image component
Iberius
IberiusOP10mo ago
ill definitly keep the tip in mind, but I want to know if there is a good solution to this
Neto
Neto10mo ago
gl
Iberius
IberiusOP10mo ago
thank you!
Rhys
Rhys10mo ago
Just pass the unoptimized prop to image that’s what I do
Want results from more Discord servers?
Add your server