svrjs-nextjs-website/sanity.config.ts

24 lines
523 B
TypeScript
Raw Normal View History

2024-09-07 14:59:43 +02:00
"use client";
import { defineConfig } from "sanity";
import { structureTool } from "sanity/structure";
import { visionTool } from "@sanity/vision";
import { schemaTypes } from "./schemaTypes";
import { codeInput } from "@sanity/code-input";
export default defineConfig({
name: "default",
title: "svrjs",
projectId: `${process.env.NEXT_PUBLIC_SANITY_PROJECT_ID}`,
dataset: "production",
basePath: "/studio",
2024-09-07 14:59:43 +02:00
plugins: [structureTool(), visionTool(), codeInput()],
schema: {
types: schemaTypes
}
});