Skip to content

Commit 36d922f

Browse files
authored
Add apiVersion to config (#28610)
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. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes
1 parent a60690f commit 36d922f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/cms-sanity/lib/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ export const sanityConfig = {
66
// useCdn == true gives fast, cheap responses using a globally distributed cache.
77
// Set this to false if your application require the freshest possible
88
// data always (potentially slightly slower and a bit more expensive).
9+
apiVersion: '2021-03-25',
10+
// see https://www.sanity.io/docs/api-versioning for how versioning works
911
}

0 commit comments

Comments
 (0)