Skip to content

Commit

Permalink
update seo description validation
Browse files Browse the repository at this point in the history
  • Loading branch information
milewskibogumil committed Dec 19, 2024
1 parent 8628015 commit 87c76ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/sanity/schema/ui/seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default defineType({
rows: 4,
description: 'Description is visible in search engines and when sharing the page on social media.',
validation: Rule => [
Rule.max(165).warning('The field should not be longer than 165 characters.'),
Rule.min(110).warning('We recommend using at least 110 characters.'),
Rule.max(160).warning('We recommend using at most 160 characters.'),
Rule.required()
],
}),
Expand Down

0 comments on commit 87c76ce

Please sign in to comment.