55 lines
1.6 KiB
JavaScript
55 lines
1.6 KiB
JavaScript
import { createClient } from '@sanity/client'
|
||
import dotenv from 'dotenv'
|
||
|
||
dotenv.config()
|
||
|
||
const client = createClient({
|
||
projectId: process.env.SANITY_PROJECT_ID,
|
||
dataset: process.env.SANITY_DATASET || 'production',
|
||
apiVersion: '2024-01-01',
|
||
useCdn: false,
|
||
token: process.env.SANITY_API_TOKEN,
|
||
})
|
||
|
||
const homePage = {
|
||
_id: 'homePage',
|
||
_type: 'homePage',
|
||
|
||
// Hero
|
||
heroLabel: '// ARCHIVE_001 — 2026',
|
||
heroTitle: 'REBOURS|STUDIO',
|
||
heroSubtitle: 'Mobilier d\'art contemporain.\nSpace Age × Memphis.',
|
||
heroStatus: 'STATUS: [PROTOTYPE EN COURS]\nCOLLECTION_001 — BIENTÔT DISPONIBLE',
|
||
|
||
// Collection
|
||
collectionLabel: '// COLLECTION_001',
|
||
collectionCta: 'CLIQUER POUR OUVRIR',
|
||
|
||
// Contact / WhatsApp
|
||
contactLabel: '// CONTACT',
|
||
contactTitle: 'UNE QUESTION ?|PARLONS-EN',
|
||
contactDescription: 'Commandes sur mesure, questions techniques,\nou simplement dire bonjour.',
|
||
whatsappNumber: '33651755191',
|
||
whatsappButtonText: 'CONTACTEZ-NOUS SUR WHATSAPP',
|
||
contactResponseTime: 'RÉPONSE SOUS 24H',
|
||
|
||
// Footer
|
||
footerText: '© 2026 REBOURS STUDIO — PARIS',
|
||
instagramUrl: 'https://instagram.com/rebour.studio',
|
||
|
||
// SEO
|
||
seoTitle: 'REBOURS — Mobilier d\'art contemporain | Collection 001',
|
||
seoDescription: 'REBOURS Studio crée du mobilier d\'art contemporain inspiré du Space Age et du mouvement Memphis. Pièces uniques fabriquées à Paris. Collection 001 en cours.',
|
||
}
|
||
|
||
async function seed() {
|
||
console.log('Creating homePage document...')
|
||
const result = await client.createOrReplace(homePage)
|
||
console.log(`✓ homePage created: ${result._id}`)
|
||
}
|
||
|
||
seed().catch((err) => {
|
||
console.error('Error:', err.message)
|
||
process.exit(1)
|
||
})
|