<aside> 🇵🇸
I do not support the views held by Vercel leadership and their alignment with Israel’s government, and with that, Israel’s genocide of the Palestinian people. I believe in a free Palestine and support the Palestinian people’s right to self-determination. I strongly encourage anyone picking a hosting platform to steer away from Vercel and pick one of the many great alternatives.
</aside>
Create a new project in Vercel, and click “import” on your newly created copy of the boilerplate. This is probably hosted on Github!
Open up the “Environment Variables” section, copy the entire contents of .env.development and paste it in the first “Key” input in environment variables. You will need to change anywhere it says localhost.
// Change these to the vercel domain
NEXT_PUBLIC_SITE_ROOT="<http://localhost:3000>"
NEXT_PUBLIC_CMS_PREVIEW_URL="<http://localhost:3000/api/preview>"
Click deploy!
After you have a new vercel hosted domain, you’ll want to add that to your Sanity settings as the “Custom studio URL”
<https://sprout-boilerplate.vercel.app/admin>
<https://sprout-boilerplate.vercel.app>
<https://boilerplate.sprout.store>
// Allows for branch deploys in Vercel
<https://sprout-boilerplate>*.vercel.app
| Vercel Account Token (found here) | Scope: [Your Org] Expiration: [No expiration] | | --- | --- | | Vercel Project ID | Found in Project > Settings |