2 ms·
> 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 plea
by jakubadamw 3y 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?
- viraptor 3y agoI 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().