1.0.1 • Published 5 months ago

sanity-plugin-custom-seo v1.0.1

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

IMPORTANT!

This package is being used for learning purposes at the moment! You should NOT use it in production at this point.

sanity-plugin-custom-seo

This is a Sanity Studio v3 plugin.

Installation

npm install sanity-plugin-custom-seo

Usage

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

import {defineConfig} from 'sanity'
import {customSeo} from 'sanity-plugin-custom-seo'

export default defineConfig({
  plugins: [customSeo()], 
})

Then you can use the customSeo type in any field you want to:

const myDocument = {
  type: "post",
  name: "post",
  fields: [
    {
      name: "seo",
      type: "customSeo",
    },
  ]

License

MIT © Luiz Cláudio

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.

Release new version

Run "CI & Release" workflow. Make sure to select the main branch and check "Release new version".

Semantic release will only release on configured branches, so it is safe to run release on any branch.

1.0.1

5 months ago

1.0.0

5 months ago