Next.js Discord

Discord Forum

Does <img/> cost money in vercel like <Image/>?

Unanswered
Mrinank posted this in #help-forum
Open in Discord
In both static and SSR

6 Replies

Pyramid ant
Technically yes, but then you are opting out of all the benefits that come with using nextjs image.

You would probably be better off setting up a custom loader:
https://nextjs.org/docs/app/api-reference/next-config-js/images#example-loader-configuration

Vercel also has some docs on optimizing costs:
https://vercel.com/docs/image-optimization/managing-image-optimization-costs#managing-image-optimization-usage-&-costs
Looks like you can disable image optimisation if desired
Misread the question :thinq:

The answer is actually no, it will not also cost money but the above should still be helpful 🙂
Gouty oak gall
I think there are general bandwidth costs associated with <img> depending on where its hosted. But you want be charged under the image optimization line item.
@Gouty oak gall I think there are general bandwidth costs associated with <img> depending on where its hosted. But you want be charged under the image optimization line item.
i just want to avoid those unnecessary ddos bills that people get due to bandwidth, Image optimization and ssr,

if I use csr or "use client" then also will I get bandwidth usage ?
give me some suggestions and learning materials
Gouty oak gall
In my experience the most costly issues are based on the Image Optimization count itself (assuming you have more than 5,000 unique images