Skip to content

No document types showing in Sanity Studio at /admin route

7repliesLast updated: Nov 13, 2026

Hello everyone, quick intro, Im User an aspiring creative technologist, have recently dabbled with nextjs and now Im starting up onto Sanity.
I have been following this tutorial -
https://www.youtube.com/watch?v=OcTPaUfay5I&t=2363s I have followed all the steps up to 37:18 and when I navigate to localhost:3000/admin, it says I have no document types

Any clue how I can solve this problem, happy to share code with whoever is willing to help.

Big thanks in advance. Sorry in advance for coding newbie-ness
AI Update

The config key is wrong. defineConfig reads schema types from schema (singular), not schemas. Under schemas: { types: ... } Studio receives no types and shows "no document types". Rename the key to schema.

// sanity.config.ts
'use client'
import { defineConfig } from 'sanity'
import { structureTool } from 'sanity/structure'
import schemas from './sanity/schemas'

export default defineConfig({
  projectId: 'your-project-id',
  dataset: 'production',
  title: 'My Studio',
  basePath: '/admin', // must match the route Studio is mounted on
  plugins: [structureTool()],
  schema: {
    types: schemas, // an array of your schema types, e.g. [project]
  },
})

The defineConfig reference lists schema as an object with a types array and optional templates. The schema property isn't required, but few Studio features work without it, and there's no schemas property.

Other things to check

Once schema.types contains your project type, "Projects" appears in the Structure tool.

Show original thread
7 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions