Skip to content

Commit 9c0566b

Browse files
authoredMar 18, 2025··
feat(core): Global Document References support (#8299)
Co-authored-by: Per-Kristian Nordnes <per.kristian.nordnes@gmail.com> This will add support for Global Document References (GDR) in the Studio. A Global Document Reference can reference something inside another project across the user's Sanity organization.
1 parent 0f8d9c8 commit 9c0566b

File tree

56 files changed

+3884
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3884
-9
lines changed
 

‎dev/test-studio/sanity.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,18 @@ export default defineConfig([
267267
enabled: true,
268268
},
269269
},
270+
{
271+
name: 'playground-staging',
272+
title: 'playground (Staging)',
273+
projectId: 'exx11uqh',
274+
dataset: 'playground',
275+
plugins: [sharedSettings()],
276+
basePath: '/playground-staging',
277+
apiHost: 'https://api.sanity.work',
278+
auth: {
279+
loginMethod: 'token',
280+
},
281+
},
270282
{
271283
name: 'custom-components',
272284
title: 'Test Studio',

‎dev/test-studio/schema/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ import date from './standard/date'
9696
import datetime from './standard/datetime'
9797
import emails from './standard/emails'
9898
import files from './standard/files'
99+
import globalDocumentReference, {
100+
globalDocumentReferenceSubtype,
101+
} from './standard/globalDocumentReference'
99102
import images, {myImage} from './standard/images'
100103
import numbers from './standard/numbers'
101104
import objects, {myObject} from './standard/objects'
@@ -289,6 +292,8 @@ export const schemaTypes = [
289292
conditionalFieldset,
290293
crossDatasetReference,
291294
crossDatasetSubtype,
295+
globalDocumentReference,
296+
globalDocumentReferenceSubtype,
292297
fieldGroupsWithFieldsets,
293298
ptReference,
294299
validationTest,

0 commit comments

Comments
 (0)
Please sign in to comment.