Fixed AstroUserConfig
's redirect type definition (#7366)
This commit is contained in:
parent
4f7091206c
commit
42baf62e7c
2 changed files with 7 additions and 2 deletions
5
.changeset/proud-vans-approve.md
Normal file
5
.changeset/proud-vans-approve.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixed `RedirectConfig` type definition
|
|
@ -455,7 +455,7 @@ export interface AstroUserConfig {
|
|||
/**
|
||||
* @docs
|
||||
* @name redirects (Experimental)
|
||||
* @type {RedirectConfig}
|
||||
* @type {Record<string, RedirectConfig>}
|
||||
* @default `{}`
|
||||
* @version 2.6.0
|
||||
* @description Specify a mapping of redirects where the key is the route to match
|
||||
|
@ -495,7 +495,7 @@ export interface AstroUserConfig {
|
|||
* }
|
||||
* ```
|
||||
*/
|
||||
redirects?: RedirectConfig;
|
||||
redirects?: Record<string, RedirectConfig>;
|
||||
|
||||
/**
|
||||
* @docs
|
||||
|
|
Loading…
Reference in a new issue