Example of how to serve a built Sanity Studio using node.js.
npm install
npm start
We use express for our basic HTTP server and static file serving, and express-history-api-fallback to serve a default file (index.html
) on all other requests, so that the client-side can take over and do the routing.
See the Sanity documentation for more information on deployment options.
MIT-licensed. See LICENSE.