@prenta/plugin-redirects
v0.1.1
Published
Redirect management for [Prenta CMS](https://github.com/actuate-media/prenta) — editor-managed 301/302 rules served to your middleware.
Downloads
118
Readme
@prenta/plugin-redirects
Redirect management for Prenta CMS — editor-managed 301/302 rules served to your middleware.
npm install @prenta/plugin-redirectsRedirect collection vs prenta_redirects
The plugin registers a redirects document collection (fromUrl /
toUrl in JSON). The middleware matcher does not read that
collection. Runtime redirects come from the Prisma prenta_redirects
table (source / destination), managed from SEO → Redirects.
Do not assume writing a redirects document creates a live 301. There
is no automatic migration from collection JSON into prenta_redirects.
Usage
import { redirectsPlugin } from '@prenta/plugin-redirects'
export default defineConfig({
plugins: [redirectsPlugin()],
// ...
})Release notes
See CHANGELOG.md (shipped with the package) or the GitHub releases.
License
MIT
