From 80b4a181a077266c44065a737e61cc7cff6bc6d7 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Sep 2024 13:01:38 +0200 Subject: [PATCH] Fix user-facing type for `i18n.routing.fallbackType` (#11900) --- .changeset/seven-rice-exercise.md | 5 +++++ packages/astro/src/@types/astro.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/seven-rice-exercise.md diff --git a/.changeset/seven-rice-exercise.md b/.changeset/seven-rice-exercise.md new file mode 100644 index 000000000000..2e2d62b596b3 --- /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 0b4f7c0ef3dd..9087858f1115 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