4 ms·
Can you use R2 to host a static website as easily as you can with S3?
by lokl 5y ago
Can you use R2 to host a static website as easily as you can with S3?
- BlackMiracle 5y agoTo host static websites, you use Cloudflare Pages.
- lokl 5y agoThanks, I am familiar with Pages, but I would like to know whether R2 can also be used for this purpose, in a similar fashion as S3.
- RulerOf 5y agoIndeed, the Browser -> CDN -> Object storage static hosting model all under one roof is extremely appealing.
- segphault 5y agoCloudflare Pages locks you into git-based deployment, which isn't always practical, especially for sites that are heavy with images and other non-text static assets. I don't want to use git to manage the images for my website and I don't want to have to pay Github every month for Git LFS storage and bandwidth costs.
- DenseComet 5y agoYou can take a look at Workers Sites instead. Similar to their Pages solution, but with a lot more flexibility.
- greg-m 5y agoSure, you could just setup a Worker in front of a bucket. This is very similar to how the original Workers Sites worked.
- jl6 5y agoThis (combined with the free egress) would be an utterly killer app for sites that just want to publish a few simple static files.