Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Using the Sanity client without specifying an API version is deprecated

Please include date of sanity project initialization in client.js.

import sanityClient from "@sanity/client";

export default sanityClient({
  projectId: "######", // find this at manage.sanity.io or in your sanity.json
  dataset: "production",
  useCdn: true,
  apiVersion: "2022-07-15" //the day you started working with sanity on that specific project
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: get all data in collection firebase react 
Javascript :: Sum of Polygon Angles in javascript 
Javascript :: Jquery check if hover over child element 
Javascript :: node js hello word 
Javascript :: outputstream to image js example 
Javascript :: what is useref in react 
Javascript :: Datatable shows No data available in table in angular 
Javascript :: Setting up an Express project 
Javascript :: timer in angular 8 
Javascript :: create array in javascript contains 10 elements 
Javascript :: angular keyframes % 
Javascript :: javascript ean13 checksum generate 
Javascript :: math.random 
Javascript :: remove array value by index js 
Javascript :: html to jsx 
Javascript :: The loading of x in a frame is denied by “X-Frame-Options“ directive set to “SAMEORIGIN“ js 
Javascript :: appregistry react native 
Javascript :: detect javascript disabled 
Javascript :: javascript Iterate Through Iterables 
Javascript :: javascript copy object except one property 
Javascript :: javascript modify href attr 
Javascript :: codeceptjs "waitForClickable" 
Javascript :: how to keep a child window always on top in electron js 
Javascript :: json validator 
Javascript :: window close function in javascript 
Javascript :: exponent javascript 
Javascript :: jquery get multiple selected option value 
Javascript :: clear inteval 
Javascript :: mongoose get elements that contain substring 
Javascript :: react native shadow maker 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =