Change Repo for CI

Why is there no option to change the repo the pages is connected to? It would be good if there was an option to change the repo the pages is connected to, instead of having to delete it and create a new one
11 Replies
Hard@Work
Hard@Work3mo ago
@GameRoMan you should be able to modify which repository you point to with Workers CI now
Roman
RomanOP3mo ago
I'm currently using Pages, instead of Workers Would be nice to have a change repository button in Build section in Settings
No description
Chaika
Chaika3mo ago
fwiw because of ?pages
SuperHelpflare
SuperHelpflare3mo ago
As announced during Developer Week, Cloudflare recommends all new projects use Workers Assets. Cloudflare Pages will continue to be supported, but, going forward, all of our investment, optimizations, and feature work will be dedicated to improving Workers. If there is something missing that you think Workers needs, please send it in #workers-and-pages-feature-suggestions
Chaika
Chaika3mo ago
It's unlikely to be something added at this point/CF is pushing Workers to be used instead (it's also been a constraint for years now, something internal I'd imagine)
Roman
RomanOP3mo ago
I have a simple static website, https://github.com/rmandotdev/editor for example I've read the migration guide but I still don't understand what do I need to change or add to continue using it the same way i was doning it with Pages Do i just create a wrangler.toml file and that's it?
Hard@Work
Hard@Work3mo ago
That, plus Build Output Directory configuration is the minimum needed to migrate
Cloudflare Docs
Migrate from Pages to Workers
A guide for migrating from Cloudflare Pages to Cloudflare Workers. Includes a compatibility matrix for comparing the features of Cloudflare Workers and Pages.
Hard@Work
Hard@Work3mo ago
In this case, this would work as a wrangler.jsonc:
{
"name": "editor",
"compatibility_date": "2025-06-10",
"assets": {
"directory": "./src"
}
}
{
"name": "editor",
"compatibility_date": "2025-06-10",
"assets": {
"directory": "./src"
}
}
Roman
RomanOP3mo ago
Is choosing between .jsonc and .toml just a matter of personal preference or is one more recommended than the other?
Hard@Work
Hard@Work3mo ago
We generally recommend json/jsonc now instead of toml, mostly because many people who build on Cloudflare are more proficient with JSON, rather than toml. toml has a fair few foot-guns, which can break your config if you aren't careful
Roman
RomanOP3mo ago
Ok, thank you

Did you find this page helpful?