@sanity/client 6.0.1 → 6.0.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -834,11 +834,13 @@ function _requestObservable(client, httpRequest, options) {
834
834
  ...options.query
835
835
  };
836
836
  }
837
- if (config.resultSourceMap) {
838
- options.query = {
839
- resultSourceMap: true,
840
- ...options.query
841
- };
837
+ if (canUseCdn) {
838
+ if (config.resultSourceMap) {
839
+ options.query = {
840
+ resultSourceMap: true,
841
+ ...options.query
842
+ };
843
+ }
842
844
  }
843
845
  const reqOptions = requestOptions(config, Object.assign({}, options, {
844
846
  url: _getUrl(client, uri, useCdn)