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

They are static after all.
12 Replies
IEatBeans
IEatBeans4mo 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-Jak33mo ago
You shouldn’t be using Pages as an image hosting platform. You’ll want to use R2
Shawarma
Shawarma3mo ago
Weeeeeeeeell It is free
Cyb3r-Jak3
Cyb3r-Jak33mo ago
And goes against the ToS
Erisa
Erisa3mo 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
Shawarma3mo 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
Erisa3mo ago
If theyre used in your website you're fine
Shawarma
Shawarma3mo ago
I won’t be billed as well right? @Erisa
Erisa
Erisa3mo ago
Static assets are free so you won't be billed
Shawarma
Shawarma3mo ago
Thank you very much Erisa, I appreciate your help 🙏
Cyb3r-Jak3
Cyb3r-Jak33mo ago
Sorry I thought you meant it was only going to be images.
Shawarma
Shawarma3mo ago
No probs, thanks for helping out!
Want results from more Discord servers?
Add your server