@gearbox-built/sanity-content-import
v0.1.0
Published
Sanity integration for the Gearbox Content Import tool.
Downloads
2
Readme
@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.