AlexanderKaran
AlexanderKaran
CDCloudflare Developers
Created by AlexanderKaran on 11/21/2023 in #pages-help
How do I get service binding to work locally
I have a service binding from my web app (remix) to a API worker. I created at wrangler.toml file and added the binding in the web app and it was working. However since upgrading the wrangler package it seems to have stoped working,
2 replies
CDCloudflare Developers
Created by AlexanderKaran on 11/14/2023 in #workers-help
Service Binding Page Worker to Worker Locally Set up
We currently have a few workers and then a remix site. Setting up worker-to-worker communication through service bindings on Cloudflare and locally is super easy. However, setting up a service binding between remix and worker locally is not working. It can be done on Cloudflare, but not locally. There is no wrangler.toml in the remix project. Following these guides: - https://developers.cloudflare.com/pages/platform/functions/bindings/#service-bindings - https://developers.cloudflare.com/workers/runtime-apis/service-bindings/ Has anyone done this before?
1 replies
CDCloudflare Developers
Created by AlexanderKaran on 10/18/2023 in #workers-help
Subdomain Routes With Multiple Workers
I have two workers say account-worker user-worker Both running off a subdomain my-api.my-domain.com In each worker I have set up the route to accept requests at: my-api.my-domain.com/accounts* for the account worker my-api.my-domain.com/users* for the users worker Works locally fine when running and testing but there not accepting requests when deployed. Am I missing something?
6 replies
CDCloudflare Developers
Created by AlexanderKaran on 10/14/2023 in #workers-help
Multi Workers For API - Use one worker as main router or use Cloudflare routes?
are , I am building an API with over 15 workers. What is the best way to route? Reading the docs I can see there are two approaches: 1: Map custom domain to one Worker that invokes the others based on the URL 2: Use the Routes feature in the Cloudflare One seems to be the better option but I am unsure. Help and advice needed.
6 replies
CDCloudflare Developers
Created by AlexanderKaran on 10/13/2023 in #general-help
Building an API across multiple workers
Looking at building a large API with Cloudflare workers with about 60 endpoints. It would be crazy to build all in one worker, right? I considered using Hono and npmn workspaces to share code between workers where needed. Has anyone done this before? Looking at most guides everyone has a worker with four endpoints. Last thought has does it work mapping a domain say api.example.com to multiple workers?
16 replies