mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Make sure studio is running for build
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
],
|
||||
})
|
@@ -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(),
|
||||
}),
|
||||
],
|
||||
})
|
Reference in New Issue
Block a user