Images in public folder vs CDN
Answered
Palomino posted this in #help-forum
PalominoOP
I have around 100 images which are less than 5MB combined, should i host them inside my nextjs app in the public folder or serve them from a CDN (supabase storage) and why?
Answered by B33fb0n3
same thoughts here: https://nextjs-forum.com/post/1330301340919791626#message-1330306153019867239 <--- click
As long is everything is suited, there is no need to use an external CDN.
Test it with public folder and if you hit limits, use a CDN
As long is everything is suited, there is no need to use an external CDN.
Test it with public folder and if you hit limits, use a CDN
6 Replies
@Palomino I have around 100 images which are less than 5MB combined, should i host them inside my nextjs app in the public folder or serve them from a CDN (supabase storage) and why?
serve them via public folder. If all of your needs suited like that, you can keep that. Else switch to CDN. You'll know why you want to change when your public folder strategie does not work anymore
@B33fb0n3 serve them via public folder. If all of your needs suited like that, you can keep that. Else switch to CDN. You'll know *why* you want to change when your public folder strategie does not work anymore
PalominoOP
how about cost wise? i heard vercel is overpriced when it comes to bandwidth
@Palomino how about cost wise? i heard vercel is overpriced when it comes to bandwidth
same thoughts here: https://nextjs-forum.com/post/1330301340919791626#message-1330306153019867239 <--- click
As long is everything is suited, there is no need to use an external CDN.
Test it with public folder and if you hit limits, use a CDN
As long is everything is suited, there is no need to use an external CDN.
Test it with public folder and if you hit limits, use a CDN
Answer
@Palomino solved?
PalominoOP
yes, thank you
sure thing