blob: b2dbb8171a46b67c1cc7b39e16794caae508c64e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { defineConfig } from "sanity";
import { visionTool } from "@sanity/vision";
import schema from "./src/lib/sanity/schemas/default";
import { withDocumentI18nPlugin } from "@sanity/document-internationalization";
import { supportedLanguages } from "./src/lib/sanity/locales";
import { languageFilter } from '@sanity/language-filter'
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([languageFilter({
supportedLanguages: supportedLanguages,
}), (import.meta.env.DEV && visionTool() as any)], {
languages: supportedLanguages,
fallbackLanguageSelect: supportedLanguages.find((l) => l.isDefault)?.id as any,
}),
// @ts-ignore type mismatch
schema
});
|