Move existing worker to Github

For Workes & Pages, what is the name of the domain?

What is the error number?

What is the error message?

What is the issue or error you’re encountering

What steps have you taken to resolve the issue?

Read documentation on how wrangler works and how to setup CF workers with Github

What are the steps to reproduce the issue?

I can’t find a way to “export” / “migrate” an existing worker that I manually created in Cloudflare to a github repo. The worker is already being used in production so I want to avoid starting a new worker code from scratch since I might cause interruptions due to some misconfiguration in the toml file, custom domain etc

1 Like

Same issue here. I’ve a number of workers I’ve manually created in Cloudflare that I want to sync with github. I assumed that when I connected the worker to a repo that the code would be transferred across?

Hello, I’m facing the same issue and I’m considering connecting the project to Git first and then to GitHub. I believe this could be an effective solution. As a last resort, we could manually create the repository, but it’s a task we’d rather avoid. Has anyone managed to solve this problem? If so, could you please share the solution?