import { defineConfig } from 'sanity' import { visionTool } from '@sanity/vision' import { schemaTypes } from './schemas' import { withDocumentI18nPlugin } from '@sanity/document-internationalization' import { baseLanguage, supportedLanguages } from './schemas/_locales' export default defineConfig({ name: 'default', title: 'auroraklinikken.no', projectId: process.env.SANITY_STUDIO_API_PROJECT_ID ?? "", dataset: process.env.SANITY_STUDIO_API_DATASET ?? "", plugins: withDocumentI18nPlugin([visionTool()], { languages: supportedLanguages.map(el => el.iso), fallbackLanguageSelect: supportedLanguages.find(l => l.isDefault)?.iso as any }), schema: { types: schemaTypes, }, })