diff options
author | 2024-09-02 13:01:38 +0200 | |
---|---|---|
committer | 2024-09-02 13:01:38 +0200 | |
commit | 80b4a181a077266c44065a737e61cc7cff6bc6d7 (patch) | |
tree | 38b91d7867971dfc1d140efa9b425b68d8b99c9e | |
parent | 39d330f6f2f8ce02f0d0f2488d6bce3d28e07a8a (diff) | |
download | astro-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.md | 5 | ||||
-rw-r--r-- | packages/astro/src/@types/astro.ts | 2 |
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 |