/self-hosted-studio-example

Example of how to serve a built Sanity Studio using node.js

Primary LanguageJavaScriptMIT LicenseMIT

self-hosted-studio-example

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.