Is it wrong to put my images in the public folder?

They are static after all.
12 Replies
IEatBeans
IEatBeans5mo ago
I think that’s where they are supposed to go The public folder just gets copied to the output folder iirc So if some of the images need to be restricted you can put a function middleware over it
Cyb3r-Jak3
Cyb3r-Jak35mo ago
You shouldn’t be using Pages as an image hosting platform. You’ll want to use R2
Shawarma
ShawarmaOP5mo ago
Weeeeeeeeell It is free
Cyb3r-Jak3
Cyb3r-Jak35mo ago
And goes against the ToS
Erisa
Erisa5mo ago
If the images are used on a website hosted within the same project then it's fine, but if you're using Pages as a way to host arbitrary image files for other purposes then that's not really allowed. Luckily R2 works very nicely for this use-case.
Shawarma
ShawarmaOP5mo ago
Images will be used in my website, yes It is just a lot of images If this is allowed then why should I use R2? I can simply drop my images in the public folder and it Just Works ™
Erisa
Erisa5mo ago
If theyre used in your website you're fine
Shawarma
ShawarmaOP5mo ago
I won’t be billed as well right? @Erisa
Erisa
Erisa5mo ago
Static assets are free so you won't be billed
Shawarma
ShawarmaOP5mo ago
Thank you very much Erisa, I appreciate your help 🙏
Cyb3r-Jak3
Cyb3r-Jak35mo ago
Sorry I thought you meant it was only going to be images.
Shawarma
ShawarmaOP5mo ago
No probs, thanks for helping out!
Want results from more Discord servers?
Add your server