Is it possible to use S3 api on local dev for R2?

Basically I want to upload images from client side js using s3 api with https://<ACCOUNT_ID>.r2.cloudflarestorage.com:

It works on production.

If we want to do it on local dev without storing images on R2, is there some fake endpoint like r2.localhost that we can use?

1 Like