#Deploy Astro & Sanity into Heroku

2 messages · Page 1 of 1 (latest)

night hound
#

Hi! i am trying to deploy an Astro project with Sanity into Heroku, is there something i should add on the configuration of astro to make it work? How should the scripts in the package json look like? Thanks

cunning fox
#

You'll probably have to deploy it to a dyno using the Node.js adapter because it seems the Heroku guide on the docs site is written for static sites only? You should only have to change the Procfile script to npm run preview from what I can see

Side note, unless you need to use Heroku I'd recommend alternative platforms like Vercel or Netlify