Cannot use assets in remote mode

Hello,
I want to use an assets folder within my worker, on
wrangler dev
everything serves as expected, but when I am adding the --remote flag to the command I am getting this error:
✘ [ERROR] Cannot use assets in remote mode. Workers with assets are only supported in local mode. Please use `wrangler dev`.

I am trying to run the local worker with access remote R2 buckets, is there a way to do that with my assets folder?

My Toml assets configuration:
assets = { directory = "./public/", binding = "ASSETS" }
Was this page helpful?