0.0.1 • Published 7 months ago

@mgrzyb/sanity-plugin-sitemap v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

sanity-sitemap

This is a Sanity Studio v3 plugin.

Installation

npm install sanity-sitemap

Usage

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

import {defineConfig} from 'sanity'
import {sanitySitemap} from 'sanity-sitemap'

export default defineConfig({
  //...
  plugins: [sanitySitemap({ pageTypes: ["page", /*...*/]})],
})

License

MIT © Maciej Grzyb

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.