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`.
[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" }
assets = { directory = "./public/", binding = "ASSETS" }
2 Replies
Walshy
Walshy3mo ago
As the message says, not supported today. Will be in the future.
DangerZone
DangerZoneOP3mo ago
Gotcha, I was expecting this to be documented in here: https://developers.cloudflare.com/workers/static-assets/#limitations
Cloudflare Docs
Static Assets | Cloudflare Workers docs
Create full-stack applications deployed to Cloudflare Workers.
Want results from more Discord servers?
Add your server