Skip to content

Commit

Permalink
chore: update studio version for production-ready cellar (#5993)
Browse files Browse the repository at this point in the history
  • Loading branch information
cngonzalez authored Mar 13, 2024
1 parent edea1f6 commit a1dd0d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface ServerBackendOptions {
* @internal
*/
export function serverBackend({client: _client}: ServerBackendOptions): Backend {
const client = _client.withConfig({...DEFAULT_STUDIO_CLIENT_OPTIONS, apiVersion: 'vX'})
const client = _client.withConfig(DEFAULT_STUDIO_CLIENT_OPTIONS)

const keyValueLoader = new DataLoader<string, KeyValueStoreValue | null>(async (keys) => {
const value = await client
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/studioClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import {type SourceClientOptions} from './config'
* @internal
*/
export const DEFAULT_STUDIO_CLIENT_OPTIONS: SourceClientOptions = {
apiVersion: '2023-11-13',
apiVersion: '2024-03-12',
}

0 comments on commit a1dd0d3

Please sign in to comment.