How to deploy Netlify CMS outside of my website?

I am just getting started with JAMStack and Static site generators.
After doing some research, I have settled on using Nuxt JS with NetlifyCMS.
All of the examples that I could see always deploy the CMS along with the main website, like https://example.com/admin/index.html.
But I wanted to keep the CMS code away for the main site. Is there someway I can create a git repo which has the NetlifyCMS index and config files and deploy it at some other url like https://cms.example.com.
And when when I publish any new comment, it pushes the content to the other git repository which has my main site (https://example.com).

Can I authorise a single Netlify site to use 2 git repositories?

  1. Cms repo
  2. Actual site repo (I’ll add the repo url to the cms config.yml)

Thanks

Hi @batrashubham and welcome to our community!

While that isn’t the default layout, you can accomplish it though not as you suggest. Any Netlify site is linked to at most one repo. The easiest way I can think of to split things up would be that you could link 2 different sites to the same repo. In one, you have /admin/index.html and the cms; in the other, you don’t expose those (they aren’t part of the files you publish; perhaps you use a different base directory for those; drafts will be in branches, and your build command may need some “help” to find the files - like copying them into your site build directory).

There are probably another dozen ways you could do that, but that’s probably the easiest :slight_smile: