Skip to content

Instantly share code, notes, and snippets.

View saiichihashimoto's full-sized avatar

Saiichi Shayan Hashimoto saiichihashimoto

View GitHub Profile
{
"$schema": "https://json.schemastore.org/package.json",
"scripts": {
"build": "sanity build --yes",
"dev": "sanity dev",
"start": "sanity start"
},
"dependencies": {
"@sanity-typed/types": "6.2.0",
"@sanity/vision": "3.21.3",
@saiichihashimoto
saiichihashimoto / sanity.config.ts
Created June 15, 2023 19:35
When does sanity give objects a _type and what are the types?
import { visionTool } from "@sanity/vision";
import {
defineArrayMember,
defineConfig,
defineField,
defineType,
} from "sanity";
import { deskTool } from "sanity/desk";
const theDocument = defineType({