0.1.0 • Published 10 months ago

sanity-plugin-sanitypress v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

sanity-plugin-sanitypress

This is a Sanity Studio v3 plugin.

Installation

npm install sanity-plugin-sanitypress

Usage

Add it as a plugin in sanity.config.ts (or .js):

+ import pkg from './package.json'
import { defineConfig } from 'sanity'
+ import { sanitypress, icon, infoWidget } from 'sanity-plugin-sanitypress'

export default defineConfig({
  //...
+ icon,

  plugins: [
+   sanitypress({
+     singletonTypes: ['site'], // default: ['site']
+     licenseKey: 'your-license-key',
+   }),

    dashboardTool({
      name: 'info',
      title: 'Info',
      widgets: [
        projectInfoWidget(),
        projectUsersWidget(),
+       infoWidget({ version: pkg.version }),
      ],
    }),
    // other plugins
  ],
})

License

MIT © SanityPress / nuotsu

Develop & test

This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.

See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.

0.1.0

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago