Radoš
CDCloudflare Developers
•Created by Md.Sadiq on 10/5/2024 in #workers-help
Can i know how to create an Express App using cloudflare workers
Replace Express with Hono or Elysia
12 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
Yes, when I log the call result, it shows
ProxyObject
, but then when I tried to call result.someFunction
it was always undefined. Like it closed connection already. But maybe I was too tired and I did some rookie mistake 😄9 replies
CDCloudflare Developers
•Created by lucasp on 9/26/2024 in #workers-help
any way to use the binding with hono without passing the service url?
You can use RPC, so you do not have to use
fetch
and also, you do not have to make it public (no public url).
https://developers.cloudflare.com/workers/runtime-apis/rpc/
https://blog.cloudflare.com/javascript-native-rpc/
https://github.com/cloudflare/js-rpc-and-entrypoints-demo8 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
I have gone thru rabbit hole of sharing types between Service and Caller, but trying to call function from AuthService class thats extends
RpcTarget
resulted in undefined
every time.
I am going to play with it in next few days, so if I stumble up on something I will let you know.9 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
Does
[Symbol.dispose]()
works for you as it is also part of the TC39?
https://github.com/cloudflare/js-rpc-and-entrypoints-demo
In this repo, they are using it without using
even with RpcTarget
9 replies
CDCloudflare Developers
•Created by Web Bae on 7/1/2024 in #workers-help
Service Workers and Typescript
@alors thanks for the links
9 replies
CDCloudflare Developers
•Created by wotan6891 on 9/25/2024 in #general-help
I bought a domain on cloudflare but there is no option to register the hosting name servers
How they do not know. WTF 😄
I would switch hosting in the first place.
15 replies
CDCloudflare Developers
•Created by wotan6891 on 9/25/2024 in #general-help
I bought a domain on cloudflare but there is no option to register the hosting name servers
You can verify that with your hosting provider just to be 100% safe.
15 replies
CDCloudflare Developers
•Created by wotan6891 on 9/25/2024 in #general-help
I bought a domain on cloudflare but there is no option to register the hosting name servers
Then put that IP as a A record. Probably they have a proxy that will know that the request goes to that site. Same way as Traefik or Caddy works.
15 replies
CDCloudflare Developers
•Created by Pol on 8/24/2024 in #pages-help
I'm using Bun, it's specified on package.json, but pages tries to download with npm
@Pol @Jeff did you set build command in CF Workers UI?
17 replies
CDCloudflare Developers
•Created by fabiogra on 9/24/2024 in #pages-help
Connect pages directly with R2
No, you can use bindings directly from functions or _worker. If you use something like Astro, you can use it in /api and in actions instead.
2 replies
CDCloudflare Developers
•Created by somoni on 9/23/2024 in #workers-help
are there examples showing how to do authentication in a cloudflare worker ?
4 replies
CDCloudflare Developers
•Created by kgni on 2/5/2024 in #workers-help
wrangler.toml config questions
3 replies
CDCloudflare Developers
•Created by Alvee on 1/25/2024 in #workers-help
is workers good for sending payment alerts using corn job 7 days before they user have to pay
@Alvee I plan to, but for nothing serious right now.
4 replies
CDCloudflare Developers
•Created by bllmo on 1/18/2024 in #workers-help
Multiple Worker API Gateway Architecture
- Create a npm workspace
- Create each worker
- Create a router worker with service binding to other workers
- Use Hono or itty-router
- In the same router worker you can do rate limiting or create a single worker just for that (that will go before router with bindings to it)
2 replies
CDCloudflare Developers
•Created by Fabrizio on 1/19/2024 in #workers-help
Multiple Worker Architecture
- Create a npm workspace
- Create each worker
- Create a router worker with service binding to other workers
- Use Hono or itty-router
- In the same router worker you can do rate limiting or create a single worker just for that (that will go before router with bindings to it)
5 replies