🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Difficulty using sanity client object in sanity studio document file in sanity 3.

2 replies
Last updated: Nov 7, 2023
One question.I am going to use sanity client object in sanity studio document file,
In sanity 2, I can use this module
import client from 'part:@sanity/base/client'
,but in sanity 3, I cannot use that, also we have two environments, so it's difficult to create client with current environment.
Nov 7, 2023, 5:40 PM
This is covered in the documentation here .
Nov 7, 2023, 5:43 PM
thanks very much
Nov 7, 2023, 5:43 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?