Skip to content

🚀 Feature Request: Ability to emulate a public R2 bucket when developing locally with Wrangler 3 #3687

@VirtualWolf

Description

@VirtualWolf

Describe the solution

Under Wrangler 2, when running locally any files you'd upload to a "local" R2 bucket would be saved in a directory with the exact filename you gave it at upload time, which meant you could very easily emulate a public R2 bucket by pointing serve at it or something similar.

Unfortunately this approach doesn't work anymore with Wranger 3 (or I guess Miniflare now?) because the filenames are all hashes now and there's an SQLite database involved as well, and as far as I can tell there's no ability to emulate a public bucket except by actually having a public bucket for real in Cloudflare.

It'd be great to have an extra flag when running wrangler dev, maybe something similar to --assets, that could specify that the R2 bucket should act as though it was public.

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:miniflareRelating to Miniflareproduct:r2Relating to Cloudflare R2: https://developers.cloudflare.com/r2/
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions