UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

26 lines (22 loc) 774 B
import {type ClientPerspective} from '@sanity/client' import {type SourceClientOptions} from '../../config/types' /** * @internal This is the client options used for the releases studio client, using the `X` API version for now * Will change to a specific version soon. * TODO: Remove after API version is stable and support releases */ export const RELEASES_STUDIO_CLIENT_OPTIONS: SourceClientOptions = { apiVersion: 'v2025-02-19', } /** * @internal Checks if the perspective is a release perspective * TODO: Remove after API version is stable and support releases */ export const isReleasePerspective = ( perspective: ClientPerspective | undefined | string | string[], ): boolean => { if (Array.isArray(perspective)) { return true } return false }