From 6cb399e7267ae78e3e498bdbf5f51678ffb2cd45 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 21 Feb 2023 23:24:14 +0100 Subject: feat: Many things Configure sanity in same project as the app Implement type safe sanity schema Read localised documents Strip down design --- sanity/sanity.config.ts | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 sanity/sanity.config.ts (limited to 'sanity/sanity.config.ts') diff --git a/sanity/sanity.config.ts b/sanity/sanity.config.ts deleted file mode 100644 index 0aa425e..0000000 --- a/sanity/sanity.config.ts +++ /dev/null @@ -1,19 +0,0 @@ -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, - }, -}); -- cgit v1.3