Skip to content

Commit

Permalink
Fix user-facing type for i18n.routing.fallbackType (#11900)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Sep 2, 2024
1 parent 39d330f commit 80b4a18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/seven-rice-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes the user-facing type of the new `i18n.routing.fallbackType` option to be optional
2 changes: 1 addition & 1 deletion packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ export interface AstroUserConfig {
* })
* ```
*/
fallbackType: 'redirect' | 'rewrite';
fallbackType?: 'redirect' | 'rewrite';

/**
* @name i18n.routing.strategy
Expand Down

0 comments on commit 80b4a18

Please sign in to comment.