28 lines
571 B
TypeScript
28 lines
571 B
TypeScript
import {defineConfig} from 'sanity'
|
|
import {structureTool} from 'sanity/structure'
|
|
import {visionTool} from '@sanity/vision'
|
|
import {schemaTypes} from './schemaTypes'
|
|
import { codeInput } from '@sanity/code-input';
|
|
|
|
const projectId = process.env.PUBLIC_SANITY_PROJECT_ID!;
|
|
const dataset = process.env.PUBLIC_SANITY_DATASET!;
|
|
|
|
export default defineConfig({
|
|
name: 'default',
|
|
title: 'briannelson.dev',
|
|
basePath: "/admin",
|
|
|
|
projectId,
|
|
dataset,
|
|
|
|
plugins: [
|
|
structureTool(),
|
|
visionTool(),
|
|
codeInput(),
|
|
],
|
|
|
|
schema: {
|
|
types: schemaTypes,
|
|
},
|
|
})
|