#Img counts as bandwidth in Vercel

15 messages · Page 1 of 1 (latest)

hardy cloudBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

zealous kite
#

if you use next/image, then yes, otherwise, only the code that is sent is used...

#

also where is the 10mb bandwidth?

#

that should only use the cdn... vercel shouldn't charge you for it

#

if you check the network tab in devtools, you will see every request sent as well as the size... this can also confirm your thoughts

#

ahh you have alot of middleware

#

yeah the response and request payloads are counted here

#

and when using image optimisation, that is also counted (every request, even if cached)

#

tbh i just do that...

#

but it can be benifitial to use optimised for lots

#

you can also use next/image and disable optimised images in next config

zealous kite
#

for this case, you should put your website behind cloudflare as they cache those js files on their cdn for free + free ddos protection - but you can loose things like knowing the request ip via normal means... (and idk how edge works with it)

#

you get a header from cloudflare, but you also need to verify that it came from cloudflare because otherwise with deployment url, it is easy to spam...

#

yeah... you may need to enable it (i didn't think so), but it is free and should reduce your costs