korinne
CDCloudflare Developers
•Created by zilch on 4/21/2025 in #workers-help
Shifting to workers from pages
Hey @zilch great questions! Here are some answers:
- We unfortunately don't have prod/preview env settings in Workers today that match what you get in Pages. We are actively working on this though, but it is a gap currently. You can set up environmnets in your Wrangler configuration, but these basically just create new Workers with different prefixes: https://developers.cloudflare.com/workers/configuration/environment-variables/#configuring-different-environments-in-wrangler
- We are actively working on stable branch preview URLs, and hope to get them out soon! Will keep you updated on progress
2 replies
CDCloudflare Developers
•Created by w7a9q on 4/21/2025 in #workers-help
Vite with WorkerEntrypoint (RPC)
Hi! Do you have something I could repro to see the error myself? I'm going to assume you're using standing up an auth service on one Worker, and trying to communicate to that Worker from another service using a service binding (via WorkerEntrypoint). Is that accurate? If so, here's an example of how to have multiple workers with the Vite plugin: https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare/playground/multi-worker
Let me know if you're attempting something else, and would love to help!
3 replies