🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Unable to see image schemas in Sanity Studio structure

2 replies
Last updated: Jan 21, 2024
Hello everyone 🙂So super new at this and im at a loss, as I dont get an error but I cant se the image schemas in sanity

// schemas/index.js

console.log('Importing schemas...');

import text1 from './text1';

import text2 from './text2';

import text3 from './text3';

import text4 from './text4';

import image1 from './image1';

import image2 from './image2';

import image3 from './image3';

console.log('Schemas imported:', [text1, text2, text3, text4, image1, image2, image3]);

const schemaTypes = [text1, text2, text3, text4, image1, image2, image3];

console.log('Exporting schemaTypes:', schemaTypes);

export default schemaTypes;

import {defineConfig} from 'sanity'
import { structureTool } from 'sanity/structure'
import schemaTypes  from './schemas/index'

console.log('Configuring Sanity Studio...');

console.log('Imported schemaTypes:', schemaTypes);

export default defineConfig({
  title: "",
  projectId: "xxxxxxx",
  dataset: "xxxxxx",
  plugins: [structureTool()],

  schema: {
    types: schemaTypes,
console.log('Sanity Studio configuration:', defineConfig);
// schemas/image.js
export default {
    name: 'image1',
    title: 'Image1',
    type: 'image',
    options: {
      hotspot: true,
    fields: [
          name: 'caption',
          type: 'string',
          title: 'Caption',
          name: 'attribution',
          type: 'string',
          title: 'Attribution',
I cant understand why I cant see it in the structure...
Jan 16, 2024, 6:44 PM
Only documents can be viewed in your structure. You’ll need to put your image inside of a document.
Jan 17, 2024, 9:13 PM
Oh ok! Thanks 🙂
Jan 21, 2024, 6:24 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?