Penyata
CDCloudflare Developers
•Created by Penyata on 12/11/2023 in #general-help
Cloudflare Monorepos, deployed to pages with GitHub action
We converted our repository into a monorepo, as we were adding a second app that needed to share components. We quickly found out that the dashboard automatic deploys don't work with monorepos, so we switched to using the GitHub actions to directly upload. (Looks like it's using Wrangler?) I'm a front-end dev getting "wrangled" into dev ops, so feeling out of my depths.
Now I'm trying to figure out how to configure the monorepo to deploy as two separate app, but I'm not finding a lot of resources. Still knee deep in researching, but I was wondering if anyone here has any pointers.
- Do you need multiple "projects" to deploy multiple apps from the same repo? Or can you stick with one? (It won't let me make a new page pointed at the same repo from dashboard "new page")
- If not, can you add multiple production branch deployments? I'm not seeing that options in the dashboard.
- It offers a "direct file upload" option, but that is not viable because we want to deploy from our repository.
It seems like Cloudflare is capable of handling Monorepos, but isn't too directly supporting them yet. So I'm pretty sure the solution is out there, just buried.
4 replies