DangerZone
DangerZone
Explore posts from servers
CDCloudflare Developers
Created by DangerZone on 11/5/2024 in #workers-help
Connect a worker to AWS VPC via Tunnel
Hello, is it possible to connect a Cloudflare worker to my AWS VPC through a Cloudflare tunnel? I haven't seen any documentation about this other than the statement that a tunnel connects a private network to cloudflare network which sounds like it could allow workers send requests to an endpoint within my AWS VPC. Is that possible? and if yes, is there any documentation on how we can enable it?
1 replies
CDCloudflare Developers
Created by DangerZone on 10/15/2024 in #workers-help
Does a worker has access to bulk KV writes?
I want to create a worker that serves as a proxy to KV, specifically for the bulk writes. Can I use the bulk operations within the KV bindings?
10 replies
CDCloudflare Developers
Created by DangerZone on 10/14/2024 in #workers-help
Accessing Remote R2 while having local assets
Hey, I am trying to build a worker that can access my remote R2 buckets, but still have local static assets to serve. From my research it looks like its common to have an R2 assets bucket to solve this issue, but because multiple develpers are going to work on this worker, we don't want them to share the same assets bucket. Our current limitations: - We can't seed the local R2 since our data set is too big, and we need to know which data is seeded specifically across tens of buckets. - We can't have a remote assets folder since we don't want engineers to share them. - We can't have local assets with wrangler dev --remotesince it throws an 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`.
Whats should we do?
7 replies
CDCloudflare Developers
Created by DangerZone on 10/14/2024 in #workers-help
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" }
3 replies