Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing something #64

Open
linmar opened this issue Dec 28, 2023 · 1 comment
Open

Missing something #64

linmar opened this issue Dec 28, 2023 · 1 comment

Comments

@linmar
Copy link

linmar commented Dec 28, 2023

If you find a security vulnerability, do NOT open an issue. Email security@sanity.io instead.

It's not working for me; maybe I'm missing something in the config?

I've added this to my sanity.config.ts:

import {cloudinarySchemaPlugin} from 'sanity-plugin-cloudinary'

And this to my sanityTypes.tsx for the document type I want to use ("Listings"):

  CloudinaryImage: {
    type: "cloudinary.asset";
    name: "image";
    description: "This asset is served from Cloudinary";
  };
  CloudinaryImageList: {
    type: "array";
    name: "cloudinaryList";
    description: "This asset is served from Cloudinary";
    of: [{ type: "cloudinary.asset" }];
  };

But nothing shows in Sanity studio, i.e. those fields CloudinaryImage and CloudinaryImageList are not there.

Steps to reproduce the behavior:

  1. Config as per above
  2. Visit studio

Expected behavior

The fields should show

sanity versions
@sanity/cli (global) 3.18.1 (latest: 3.23.4)
@sanity/image-url 1.0.2 (up to date)
@sanity/pkg-utils 3.3.5 (up to date)
@sanity/plugin-kit 3.1.10 (up to date)
@sanity/vision 3.19.0 (latest: 3.23.4)
sanity 3.19.1 (latest: 3.23.4)

What operating system are you using?

Vercel

Which versions of Node.js / npm are you running?

Vercel

Additional context

./.

Security issue?

no

@linmar
Copy link
Author

linmar commented Dec 28, 2023

Same result after updating to latest versions:

sanity versions
@sanity/cli (global) 3.23.4 (up to date)
@sanity/image-url 1.0.2 (up to date)
@sanity/pkg-utils 3.3.5 (up to date)
@sanity/plugin-kit 3.1.10 (up to date)
@sanity/vision 3.23.4 (up to date)
sanity 3.23.4 (up to date)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant