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
IberiusOP9mo ago
No description
Neto
Neto9mo ago
remove Image and use img
Iberius
IberiusOP9mo ago
can i use Image and use the unoptimized tag?
Neto
Neto9mo ago
nop the Image component is deeply tied to vercel
Iberius
IberiusOP9mo ago
or like a custom loader?
No description
Iberius
IberiusOP9mo ago
since im using a cdn already for the iamges
Neto
Neto9mo ago
maybe, i dont know too much about the Image component
Iberius
IberiusOP9mo ago
ill definitly keep the tip in mind, but I want to know if there is a good solution to this
Neto
Neto9mo ago
gl
Iberius
IberiusOP9mo ago
thank you!
Rhys
Rhys9mo ago
Just pass the unoptimized prop to image that’s what I do
Want results from more Discord servers?
Add your server