Creating a Sanity project template with Next.js and Vercel
Last updated: May 24, 2023
Hey, I’ve just created a new Sanity project. I create a really simple studio with 2 documents (works and tags) and a singleton (home). I also created a custom body field using portable text.I connected this studio to a Next 13 brand new project that fetch data from my studio. My main folder is name
and it includes a
folder that correspond to the sanity studio and my next.js application. Also, I want to use Vercel to host my
folder. Is there a way to turn this project into a template I can re-use for any future project? Thanks!
May 20, 2023, 3:29 PM
We don’t currently have any published resources on how to make a template, but you create a template from your repo on Github in the mean time.
May 22, 2023, 4:51 PM
Thanks! Is there a way to clone a github repo of a sanity project to create another quick sanity projet based on this one?
May 23, 2023, 8:03 PM
You’re in luck! This guide was literally published today and can help you create a template!
May 23, 2023, 8:11 PM
Nice! Thanks for keeping me updated. I’ll check that asap! :saluting_face: