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
Cyb3r-Jak3
Cyb3r-Jak3•16mo ago
Pages doesn’t support monorepos yet. You’d have to use GitHub actions to deploy it to Pages
flayks
flayks•16mo ago
Ok, thanks. Do you know if this will be supported soon?
leaanthony
leaanthony•12mo ago
Are there any tutorials around for doing this? The inability to reuse a repo in a new site is a real pain point
Cyb3r-Jak3
Cyb3r-Jak3•12mo ago
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
leaanthony
leaanthony•12mo ago
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.
Cyb3r-Jak3
Cyb3r-Jak3•12mo ago
My guess is that is has to do with the GitHub integration part and how they receive the webhooks.
Want results from more Discord servers?
Add your server