Create multiple Pages projects with a monorepo
I'm using a pnpm monorepo and it feels impossible to deploy multiple apps/projects from the same repo. Is there a way around it? For some context, I'd like to deploy a Sanity Studio app and my website which is based on SvelteKit.
This is something possible with Vercel but I can't figure it out yet on CF Pages 😬
6 Replies
Pages doesn’t support monorepos yet. You’d have to use GitHub actions to deploy it to Pages
Ok, thanks. Do you know if this will be supported soon?
Are there any tutorials around for doing this? The inability to reuse a repo in a new site is a real pain point
They had a hacky feature to enable monorepo support but not sure if it is still supported. You can use https://github.com/cloudflare/pages-action to do direct uploads easy from multi repos
Awesome thank you! I'm seriously considering ditching cloudflare and this is one of the reasons. Just can't understand the restriction from a technical viewpoint.
My guess is that is has to do with the GitHub integration part and how they receive the webhooks.