0.1.0 • Published 1 year ago

@gearbox-built/sanity-content-import v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@gearbox-built/sanity-content-import

This is a Sanity Studio v3 plugin.

Installation

npm install @gearbox-built/sanity-content-import

Usage

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

import {defineConfig} from 'sanity'
import {contentImport} from '@gearbox-built/sanity-content-import'
import * as templateSchemas from './schema/documents/templates'

export default defineConfig({
  //...
  plugins: [
    contentImport({
      templateTypes,
    }),
  ],
})

License

MIT © Gearbox Built

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.