Skip to Page NavigationSkip to Page NavigationSkip to Content

Cloudinary Image

Upload images to your Cloudinary account via Keystone's Admin UI.

  • cloudinary: Configuration for the connected Cloudinary account.
    • cloudName - TODO
    • apiKey - TODO
    • apiSecret - TODO
    • folder - TODO
import { config, list } from '@keystone-6/core';
import { cloudinaryImage } from '@keystone-6/cloudinary';
export default config({
lists: {
SomeListName: list({
fields: {
someFieldName: cloudinaryImage({
cloudinary: {
cloudName: process.env.CLOUDINARY_CLOUD_NAME,
apiKey: process.env.CLOUDINARY_API_KEY,
apiSecret: process.env.CLOUDINARY_API_SECRET,
folder: process.env.CLOUDINARY_API_FOLDER,
},
}),
/* ... */
},
}),
/* ... */
},
/* ... */
});

On this page