From d09614234859efb586035b02ac13a02e116eeb76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Melv=C3=A6r?= Date: Mon, 30 Aug 2021 08:45:45 +0200 Subject: [PATCH] Add apiVersion to config The client now warns against missing `apiVersion` ([docs](https://www.sanity.io/docs/api-versioning)). This PR adds the config for using the latest API version. There shouldn't be breaking changes in this app. --- examples/cms-sanity/lib/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/cms-sanity/lib/config.js b/examples/cms-sanity/lib/config.js index 018ad4f2aeeb31b..b4b0101e5494c25 100644 --- a/examples/cms-sanity/lib/config.js +++ b/examples/cms-sanity/lib/config.js @@ -6,4 +6,6 @@ export const sanityConfig = { // useCdn == true gives fast, cheap responses using a globally distributed cache. // Set this to false if your application require the freshest possible // data always (potentially slightly slower and a bit more expensive). + apiVersion: '2021-03-25', + // see https://www.sanity.io/docs/api-versioning for how versioning works }