And install the latest Command Line Interface (CLI) with:
npm install --global @sanity/cli
Till now when you have set up new projects with
sanity init you have had the choice between a film database and blog to provide examples of how well known data structures are modeled in Sanity. Now we've expanded this to an e-commerce example.
For an example frontend to use with this schema, check out our Vue/Nuxt.js based ecommerce example frontend
If you don't like blogs, movie databases or e-commerce you can always just:
sanity init --template clean
If something inside of a tool crashes during rendering, a more user-friendly error message will be displayed.
We already had a default input for datetime types, now we also have an input for plain dates (as in date strings without a time segment, e.g.
We have received quite a few error reports that have been caused by invalid values returned from the preview config. Instead of a hard failure in the Studio, these errors should now be handled more gracefully along with a detailed explanation in the developer console.
Initializing and running a Sanity Studio locally on Node v10 should now work.
|Bjørge Næss||core Remove checksum warning until we can provide a way of fixing (#757)||8e9ea1b8c|
|Bjørge Næss||preview Tolerate invalid values returned from preview config and provide helpful errors (#760)||3d14c292d|
|Bjørge Næss||form-builder Refactor DateTimeInput and add DateInput (#756)||4a9772328|
|Espen Hovlandsdal||cli Use npm registry for modules. Upgrade yarn to 1.6.0 (#763)||7d062c246|
|Espen Hovlandsdal||chore Test on node 10 instead of node 9 (#759)||298ab7fd4|
|Espen Hovlandsdal||presence-store Fix path to entry file (#765)||c88c677e6|
|Espen Hovlandsdal||reflector-client Reuse sanity client instead of using get-it directly (#764)||4ad6e6dc6|
|Espen Hovlandsdal||form-builder Add ||e4f10b31e|
|Espen Hovlandsdal||default-layout Provide error boundary at tool level (#766)||4ea2fa146|
|Kristoffer J. Sivertsen||cli Adding ecommerce-studio (#758)||5524c36ff|