Sanity Connect for Shopify: Shopify shop domain added to sync

Sanity Connect now includes the Shopify shop domain when syncing to Sanity documents (products, productVariants, collections). If you've configured multiple Shopify stores to sync to a shared Sanity dataset, this field can be used to identify which store the product or collection came from.

The shop domain field will be added for all active syncs, which will add new data that your existing studio schemas does not define. When loading documents in the studio, you'll see a warning alerting you of the new data:

To remove the warning, you can add the new field to your Studio schema.

Example type:

import {defineField} from 'sanity'

export const shopType = defineField({
name: 'shop',
title: 'Shop',
type: 'object',
readOnly: true,
fields: [
defineField({
name: 'domain',
title: 'Domain',
type: 'string',
}),
],
})