Hacker News new | ask | show | jobs
by jakubadamw 807 days ago
> Like the workers have possible R2 bindings, but you can't use those in a fetch() call - you have to use S3 compatible endpoint instead.

Sorry, could you please elaborate? Why can you not use a binding to an R2 bucket – and perform operations on its objects – in a `fetch()` handler of a worker? Or did I misunderstand this statement?

1 comments

I meant that in your worker handler, you can only run fetch(s3-endpoint-for-bucket) rather than something like fetch(env.MY_BUCKET...)

This matters for their image resizing which needs to be used as options on fetch().