Skip to content

Commit

Permalink
docs(vision): fix usage example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Sep 14, 2022
1 parent 64a4d42 commit 5cd1700
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@sanity/vision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Vision is a plugin for Sanity Studio for testing GROQ queries. It features:
```ts
// `sanity.config.ts` / `sanity.config.js`:
import {createConfig} from 'sanity'
import {vision} from '@sanity/vision'
import {visionTool} from '@sanity/vision'

export default createConfig({
// ...
plugins: [
vision({
visionTool({
// Note: These are both optional
defaultApiVersion: 'v2021-10-21',
defaultDataset: 'some-dataset',
Expand All @@ -39,9 +39,9 @@ If you only want the tool available in development (eg not in deployed studios),
```ts
// `sanity.config.ts` / `sanity.config.js`:
import {createConfig, isDev} from 'sanity'
import {vision} from '@sanity/vision'
import {visionTool} from '@sanity/vision'

const devOnlyPlugins = [vision()]
const devOnlyPlugins = [visionTool()]

export default createConfig({
// ...
Expand Down

0 comments on commit 5cd1700

Please sign in to comment.