Skip to content

Commit

Permalink
✨ Add sanity cli + do not collapse images #1745
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolucchesi committed Aug 16, 2023
1 parent f1fc6bd commit 6136463
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sanityv3/sanity.cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Need to deploy using CLI
import { defineCliConfig } from 'sanity/cli'
import { dataset, projectId } from './sanity.client'

export default defineCliConfig({
api: {
projectId,
dataset,
},
})
1 change: 1 addition & 0 deletions sanityv3/schemas/objects/imageWithAlt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
type: 'image',
options: {
hotspot: true,
collapsed: false,
},
fields: [
{
Expand Down
3 changes: 3 additions & 0 deletions sanityv3/schemas/objects/imageWithAltAndCaption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default {
name: 'imageWithAltAndCaption',
title: 'Image',
type: 'object',
options: {
collapsed: false,
},
fields: [
{
name: 'image',
Expand Down

0 comments on commit 6136463

Please sign in to comment.