Nlea
Nlea
CDCloudflare Developers
Created by Patrick on 2/17/2025 in #workers-help
Help with initializing project with cloudflare.
Hey Patrick, what do you mean by basic environment and what is your exact question? You can simple create a Hono app with the CLI and pnpm create hono@latest and choose in the setup Cloudflare workers template. This gives you the project structure to get started.
2 replies
HHono
Created by TheLegendVibes on 2/1/2025 in #help
Post method not working with Queues on CF Worker
It looks like in your wrangler.json that the Consumer and Producer are connected to different queues. Is that on purpose? But I guess if your send_to_queue function produces the messages to the Producer queue like stated in your wrangler.json, the Consumer that you include in the fetch functionality won't get it because it is listing to a different Queue? Have you checked if the message is produced? How is the send_to_queue function implemented?
36 replies
CDCloudflare Developers
Created by Nlea on 11/14/2024 in #workers-help
How to access environment variables in Cloudflare Workers when using RPC binding
@Skye, thanks for pointing that out! While I used this.env within the fetch function to pass the env parameter to the send function, it didn’t occur to me that I don’t actually need the env parameter—I can simply declare it within the send function 🤦‍♀️ . I think I had a big mental block there. Thanks for helping me untangle it!
3 replies