summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Swithinbank <swithinbank@gmail.com> 2024-09-02 13:01:38 +0200
committerGravatar GitHub <noreply@github.com> 2024-09-02 13:01:38 +0200
commit80b4a181a077266c44065a737e61cc7cff6bc6d7 (patch)
tree38b91d7867971dfc1d140efa9b425b68d8b99c9e
parent39d330f6f2f8ce02f0d0f2488d6bce3d28e07a8a (diff)
downloadastro-80b4a181a077266c44065a737e61cc7cff6bc6d7.tar.gz
astro-80b4a181a077266c44065a737e61cc7cff6bc6d7.tar.zst
astro-80b4a181a077266c44065a737e61cc7cff6bc6d7.zip
Fix user-facing type for `i18n.routing.fallbackType` (#11900)
-rw-r--r--.changeset/seven-rice-exercise.md5
-rw-r--r--packages/astro/src/@types/astro.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/seven-rice-exercise.md b/.changeset/seven-rice-exercise.md
new file mode 100644
index 000000000..2e2d62b59
--- /dev/null
+++ b/.changeset/seven-rice-exercise.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Fixes the user-facing type of the new `i18n.routing.fallbackType` option to be optional
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index 0b4f7c0ef..9087858f1 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -1703,7 +1703,7 @@ export interface AstroUserConfig {
* })
* ```
*/
- fallbackType: 'redirect' | 'rewrite';
+ fallbackType?: 'redirect' | 'rewrite';
/**
* @name i18n.routing.strategy