svrjs-nextjs-website/sanity.config.ts

23 lines
523 B
TypeScript

"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",
plugins: [structureTool(), visionTool(), codeInput()],
schema: {
types: schemaTypes
}
});