Reconnect to GitHub with loader?

I had disconnected my Plasmic Studio project from my GitHub repo.

Once trying to reconnect to the existing repo, it looks as If I could only use codegen mode, not loader as it was before.

But this would change the whole state of the repo, adding files and everything.

Is there a way to re-connect to an existing GitHub repo in loader mode?

Or do I need to take the workaround of setting up a new loader connection from scratch and then overriding the repo with the existing code?

Thanks!

hi @drmarketing !
You can continue to use your repo in loader mode; disconnecting the repo is not an irreversible step – there should be no problems when reconnecting to the existing repo.
Can you send us some screenshots of what you see when trying to reconnect to GH?

Alternatively, you can continue to use your existing repo as-is and just connect the auto-deploy webhooks. In loader mode, we don’t push any component-related code, just the configuration code for the app, so you should be ok if you want your CI/CD to work on publish.
Here’s an example of how you can do it for vercel:

Hi @alex_noel ,

Thanks for taking your time to respond!

I have documented the problems I encounter when trying to reconnect to an existing repo.

SC 1: When choosing the “New repo” tab, I can select “Loader (recommended)” in the Mode pulldown.

SC 2: When choosing the “Existing repo” tab, the Mode pulldown is forced to “Codegen”. I cannot choose loader mode there anymore.

SC 3: The tooltip explains that “Loader is not available for existing repositories.”

So when you say "There should be no problems when reconnecting to the existing repo.” I wonder if I approach this wrongly? How can I reconnect, facing the above?

Thank you for showing the “Webhooks only” alternative. Still, I would prefer to be able to reconnect to a repo. I am aware of this, but I produce several Vercel projects from one GitHub repo. Going via webhooks would turn quite messy and would not be the preferred route.

Besides, I just thought, “This must be somehow possible to reconnect a once disconnected repo.”

It would be great to learn the way to do so!

Looking forward to hearing your feedback. Thank you!