Connecting a new repo to a new Sanity project without building a new Sanity app
Last updated: Jun 5, 2023
Hey! I currently have a Next.js site connected to Sanity, all living within an NX mono-repo. I need to create a new separate website with the same Sanity schemas, so I forked my repo. Now, I need to connect this new repo to a new Sanity Project. The current options to create a new Sanity Project are through the CLI or using a starter build, but I don't want to generate a new local Sanity repo since the repo I forked already has a Sanity app. Is there a way to create a new Project in Sanity without having to build a new Sanity app? I just need a new Project instance to connect to.
Jun 5, 2023, 6:54 PM
If you delete the
files, then run
will it initialize a new project using the existing schemas? It used to work this way in V2 and I think we may have recently added it back in.
Jun 5, 2023, 7:17 PM
sanity init --reconfigure
was recently added.
Jun 5, 2023, 7:30 PM
!! I think I've got it connected to the new Sanity project. I just inherited this project so I appreciate the help. 🙏🙌💯