Make sure studio is running for build

This commit is contained in:
Henrik Larsson
2023-08-14 12:24:07 +02:00
parent ef14b5423c
commit e45ccb5ff8
18 changed files with 80 additions and 139 deletions

View File

@@ -1,25 +0,0 @@
import {defineField} from 'sanity'
export default defineField({
name: 'productOption',
title: 'Product option',
type: 'object',
fields: [
defineField({
name: 'label',
title: 'Label',
type: 'string',
validation: Rule => Rule.required(),
description: 'Product option label.'
}),
defineField({
name: 'hexColors',
title: 'Color hex code',
type: 'color',
description: 'Hex color code for product option.',
options: {
disableAlpha: true
}
})
],
})

View File

@@ -1,32 +0,0 @@
import {defineField} from 'sanity'
export default defineField({
name: 'productOptions',
title: 'Product options',
type: 'object',
fields: [
defineField({
name: 'id',
title: 'ID (string)',
type: 'string',
validation: Rule => Rule.required(),
description: 'Unique product option ID.'
}),
defineField({
name: 'displayName',
title: 'Display name',
type: 'string',
description: 'Name displayed for this collection of product options.',
validation: Rule => Rule.required(),
}),
defineField({
name: 'values',
title: 'Values',
type: 'array',
description: 'What kind of values are available?',
of: [{type: 'productOption'}],
options: {},
validation: Rule => Rule.required(),
}),
],
})