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