self-hosted-studio-example
December 8, 2017 ยท View on GitHub
Example of how to serve a built Sanity Studio using node.js.
Installing
npm install
Running
npm start
How it works
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.
License
MIT-licensed. See LICENSE.