Brod
CDCloudflare Developers
•Created by Brod on 1/29/2025 in #pages-help
Using Environment Variables for Workers API URLs
We have API Workers and WebSocket Worker for each of our environments (dev, test, prod).
CI/CD for Workers and Pages with GitHub almost* works great.
Because of the limitation of not being able to define different environment variables on different preview deployments and wanting custom domains for each, we have separate compute Pages configured for each env.
*The React webapp on Pages needs CF environment variables for its corresponding Workers API URLs.
Our thought is to use Pages Variables and Secrets and access them through Functions. This just seems overly complicated, and an extra set step every time it must access a Worker.
We’ve looked at the option of deploying the app as Worker instead of using Pages, and didn’t love it.
Is this really the ideal or most straight forward configuration to solve this? Or is there a better solution/configuration?
2 replies
CDCloudflare Developers
•Created by Brod on 1/22/2025 in #workers-help
CI/CD Builds GitHub Integration - ERROR Missing entry-point / 'main'
Because wrangler.toml file is excluded in git commits, where should the
main
be configured via the CL dash "config field"?
* We are running a custom build, which looks to be fine on both Wrangle and GitHub builds.
* Wrangler deployments to all environments are successful.
6 replies
CDCloudflare Developers
•Created by Brod on 9/6/2024 in #workers-help
ERROR Could not resolve "cloudflare:workers"

16 replies