Files
obc-terrassement/sanity/schemas/siteSettings.ts
Claude f8b5762a98 fix: schemas Sanity en plain objects + config images CDN
- Retire embedded Sanity Studio (incompatible React 18)
- Schemas en plain JS pour documentation/copie vers Studio séparé
- Ajoute config images Sanity CDN dans next.config.ts

https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
2026-02-15 13:26:59 +00:00

60 lines
1.2 KiB
TypeScript

// Schema Sanity : Réglages du site (singleton)
// À copier dans votre projet Sanity Studio
export const siteSettingsSchema = {
name: "siteSettings",
title: "Réglages du site",
type: "document",
fields: [
{
name: "ownerName",
title: "Votre nom",
type: "string",
initialValue: "Enguerrand",
},
{
name: "ownerBio",
title: "Votre bio",
type: "text",
rows: 4,
description: "Texte de présentation dans la section 'Qui suis-je'",
},
{
name: "ownerPhoto",
title: "Votre photo",
type: "image",
options: { hotspot: true },
},
{
name: "address",
title: "Adresse",
type: "string",
initialValue: "Flines-lez-Raches, Nord (59)",
},
{
name: "phone",
title: "Téléphone",
type: "string",
},
{
name: "email",
title: "Email de contact",
type: "string",
},
{
name: "lat",
title: "Latitude (carte)",
type: "number",
initialValue: 50.4267,
},
{
name: "lng",
title: "Longitude (carte)",
type: "number",
initialValue: 3.2372,
},
],
};
export default siteSettingsSchema;