2023-05-24 21:49:48 -07:00
|
|
|
|
/**
|
|
|
|
|
* This configuration is used to for the Sanity Studio that’s mounted on the `/app/internal/studio/[[...index]]/page.tsx` route
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-06 23:04:52 -07:00
|
|
|
|
import { visionTool } from "@sanity/vision";
|
|
|
|
|
import { defineConfig } from "sanity";
|
|
|
|
|
import { deskTool } from "sanity/desk";
|
|
|
|
|
import { markdownSchema } from "sanity-plugin-markdown";
|
2023-05-24 21:49:48 -07:00
|
|
|
|
|
|
|
|
|
// Go to https://www.sanity.io/docs/api-versioning to learn how API versioning works
|
2023-06-06 23:04:52 -07:00
|
|
|
|
import { apiVersion, dataset, projectId } from "./sanity/env";
|
|
|
|
|
import { schema } from "./sanity/schema";
|
2023-05-24 21:49:48 -07:00
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
2023-06-06 23:04:52 -07:00
|
|
|
|
basePath: "/internal/studio",
|
2023-05-24 21:49:48 -07:00
|
|
|
|
projectId,
|
|
|
|
|
dataset,
|
|
|
|
|
// Add and edit the content schema in the './sanity/schema' folder
|
|
|
|
|
schema,
|
|
|
|
|
plugins: [
|
|
|
|
|
deskTool(),
|
|
|
|
|
// Vision is a tool that lets you query your content with GROQ in the studio
|
|
|
|
|
// https://www.sanity.io/docs/the-vision-plugin
|
2023-06-06 23:04:52 -07:00
|
|
|
|
visionTool({ defaultApiVersion: apiVersion }),
|
|
|
|
|
markdownSchema(),
|
2023-05-24 21:49:48 -07:00
|
|
|
|
],
|
2023-06-06 23:04:52 -07:00
|
|
|
|
});
|