12 Replies
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
You shouldn’t be using Pages as an image hosting platform. You’ll want to use R2
Weeeeeeeeell
It is free
And goes against the ToS
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.
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 ™
If theyre used in your website you're fine
I won’t be billed as well right?
@Erisa
Static assets are free so you won't be billed
Thank you very much Erisa, I appreciate your help 🙏
Sorry I thought you meant it was only going to be images.
No probs, thanks for helping out!