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