sanity-io / vscode-sanity

Visual Studio Code extension for developing applications powered by Sanity.io
47 stars 8 forks source link

Is this Extension still maintained? #19

Open AJMcKane opened 1 year ago

AJMcKane commented 1 year ago

Hi there,

I'm currently learning sanity and utilising it within a Nuxt.js application, so far the docs have been really helpful, but I can't get this extension to do anything. The official docs say I need a sanity.json file, but that's not the case with the Nuxt consumer, as it's configured as part of the Nuxt config, rather than in a standalone file?

And direction would be appreciated.

MartCube commented 1 year ago

I would also like to see how to connect the sanity.json file so I can execute my queries right away

mthomes commented 4 months ago

sanity.json file needs to exists in the root of your project. With this content.

{
  "api": {
    "projectId": "{projectId}",
    "dataset": "{dataset}"
  }
}