đź”® Sanity Create is here. Writing is reinvented. Try now, no developer setup

Deploying Sanity to Heroku

5 replies
Last updated: Dec 3, 2020
Hi all, can someone help me deploying sanity to Heroku? 🙂
Dec 2, 2020, 5:49 PM
assuming you’re using express, i would use express’s
API: https://expressjs.com/en/starter/static-files.html
Dec 2, 2020, 10:25 PM
sanity build
on deploy and then use the express.static to point your index there
Dec 2, 2020, 10:26 PM
you’d also have to add redirects to resolve paths and point them back to the sanity single page app. i forget how to do that though.
Dec 2, 2020, 10:27 PM
though this works, i would advise against using heroku though if you can. sanity studio is just a single page app that doesn’t require you to host any server logic yourself so providers like netlify or vercel should be easier to set up
Dec 2, 2020, 10:30 PM
Dec 3, 2020, 12:17 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?