initialize sanity but studio on localhost not wokring
This commit is contained in:
27
studio/sanity.config.ts
Normal file
27
studio/sanity.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
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,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user