@dotdev/sanity-plugin-redirects-importer
v1.2.0
Published
Sanity dashboard widget to bulk import redirects
Readme
Sanity Plugin Redirects Importer
This package provides a Sanity dashboard widget to bulk import redirects into Sanity.
Installation
yarn add @dotdev/sanity-plugin-redirects-importer
# or
npm i @dotdev/sanity-plugin-redirects-importer --saveAdd the plugin to the plugins array in sanity.json.
"plugins": [
// ...rest of plugins
"@dotdev/sanity-plugin-redirects-importer"
]If you have not already, append the following to the parts array in sanity.json.
{
"implements": "part:@sanity/dashboard/config",
"path": "dashboardConfig.js"
}Create the file dashboardConfig.js and include the widget like this.
export default {
widgets: [
{
name: "redirects-importer",
},
],
}License
MIT © DotDev See LICENSE
