Understanding slugify and isUnique in Sanity.io
{
title: 'Slug',
name: 'slug',
validation: Rule => Rule.required(),
type: 'slug',
options: {
source: 'title',
slugify: input => input.toLowerCase()
}
}title. I think you can get rid of that slugify line as Sanity is already doing that.
isUnique?
isUniquework as validation on the input field for the slug or does it only impact what the generate button creates?
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.