Sanity
- This is a nice CMS.
- Too much work to get started
- Too slow in my opinion
- Multi-references are weird.
- Validations are weird as well.
- Not a big community.
Install Sanity
- It will also ask to the select project
npm create sanity@latest -- --template clean
cd sanity && npm run dev
Running Project
Creating Schemas
- Cd into the project inside Sanity
touch pet.js
// schemas/pet.js
export default {
name: "pet",
type: "document",
title: "Pet",
fields: [
{
name: "name",
type: "string",
title: "Name",
},
],
};
// schemas/index.js
import pet from "./pet";
export const schemaTypes = [pet];