From 9d1997e6a0dfe830a89995f00b29cd1b56fef736 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 14 Aug 2024 10:22:11 -0600 Subject: [PATCH] chore: update docs for redirects plugin for new redirect type feature (#7672) --- docs/plugins/redirects.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/plugins/redirects.mdx b/docs/plugins/redirects.mdx index 8226d41734..1cf4c63634 100644 --- a/docs/plugins/redirects.mdx +++ b/docs/plugins/redirects.mdx @@ -66,6 +66,8 @@ export default config | ------------- | ---------- | ----------------------------------------------------------------------------------------------- | | `collections` | `string[]` | An array of collection slugs to populate in the `to` field of each redirect. | | `overrides` | `object` | A partial collection config that allows you to override anything on the `redirects` collection. | +| `redirectTypes` | `string[]` | Provide an array of redirects if you want to provide options for the type of redirects to be supported. | +| `redirectTypeFieldOverride` | `Field` | A partial Field config that allows you to override the Redirect Type field if enabled above. | Note that the fields in overrides take a function that receives the default fields and returns an array of fields. This allows you to add fields to the collection. @@ -83,6 +85,10 @@ redirectsPlugin({ ] }, }, + redirectTypes: ['301', '302'], + redirectTypeFieldOverride: { + label: 'Redirect Type (Overridden)', + }, }) ```