Skip to content

Commit

Permalink
Add apiVersion to config (#28610)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kmelve authored Aug 30, 2021
1 parent a60690f commit 36d922f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/cms-sanity/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 36d922f

Please sign in to comment.