Repoint Gitlab repo to new repo on webhook configured pages site

Is it possible to repoint a cloudflare pages project to a different gitlab repo without destroying the pages site. I updated my terraform and pushed changes to my pages site but its wont stop pointing to old repo url. I had to move my repo and i want to ensure my pages site is pointing to the new location
8 Replies
Hard@Work
Hard@Work2w ago
Not on Pages, but you can do so with Workers
crossbeau
crossbeauOP2w ago
Blahhh, so gotta create a new and migrate
Hard@Work
Hard@Work2w ago
Yeah, unfortunately. Though, I will note, once you are on Workers, you wouldn't have this problem anymore, and you also get the other benefits of being on Workers, like deploying on a route, non-Fetch handlers, etc.
crossbeau
crossbeauOP2w ago
I mean i have a mix of both. Are pages going away?
Hard@Work
Hard@Work2w ago
No, they just aren't really getting new features So stuff like being able to change which repo a given Worker is pointed to was only added to Workers, it won't be brought to Pages
crossbeau
crossbeauOP2w ago
:NotLikeThis:
Hard@Work
Hard@Work2w ago
I mean, you don't have to move if you don't want to? You can run CI yourself, then deploy with wrangler?
crossbeau
crossbeauOP2w ago
Management requesting namespace change on repo. And app is already deployed in prod. Ill basically need to duplicate deploy this thing and cut it over to delete the old, and then migrate this for minimal/no down time

Did you find this page helpful?