sanity-io / vscode-sanity

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

Get projectId and dataset from `.env` instead #17

Closed Svish closed 2 weeks ago

Svish commented 1 year ago

Using the new v3 setup, with for example the studio embedded in a Next.js app, there is no sanity.json file anywhere, and the extension should instead use the environment variables defined in .env.

Probably these two:

SANITY_API_PROJECT_ID
SANITY_API_DATASET
runeb commented 2 weeks ago

Apologies for the delay on this. The plugin only supported v2 of Sanity which had a different configuration format. We have now updated the plugin to support the newer sanity.cli.js|ts config file.