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
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
// Sanity schema: Portfolio
|
||||
// Créez ce schéma dans votre projet Sanity Studio
|
||||
// Type: document
|
||||
// Schema Sanity : Portfolio
|
||||
// À copier dans votre projet Sanity Studio (sanity.config.ts > schema.types)
|
||||
//
|
||||
// Si vous utilisez le CLI Sanity :
|
||||
// npx sanity@latest init --create-project "HookLab" --dataset production
|
||||
// Puis copiez ce fichier dans schemas/portfolio.ts de votre projet Studio
|
||||
|
||||
const portfolio = {
|
||||
export const portfolioSchema = {
|
||||
name: "portfolio",
|
||||
title: "Portfolio",
|
||||
type: "document",
|
||||
@@ -38,6 +41,9 @@ const portfolio = {
|
||||
type: "number",
|
||||
},
|
||||
],
|
||||
preview: {
|
||||
select: { title: "title", subtitle: "result", media: "image" },
|
||||
},
|
||||
};
|
||||
|
||||
export default portfolio;
|
||||
export default portfolioSchema;
|
||||
|
||||
Reference in New Issue
Block a user