From 05db5f78187efb53c5732b28e499c7977ceee496 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 9 May 2024 14:32:04 +0100 Subject: [PATCH] fix: incorrect type for experimental option (#10987) --- .changeset/lemon-otters-rest.md | 5 +++++ packages/astro/src/@types/astro.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/lemon-otters-rest.md diff --git a/.changeset/lemon-otters-rest.md b/.changeset/lemon-otters-rest.md new file mode 100644 index 000000000000..07cf72987bdf --- /dev/null +++ b/.changeset/lemon-otters-rest.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Fix a regression where the flag `experimental.rewriting` was marked mandatory. Is is now optional. diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 74619cf7bf18..c745287e9e83 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -2107,7 +2107,7 @@ export interface AstroUserConfig { * * For a complete overview, and to give feedback on this experimental API, see the [Rerouting RFC](https://github.com/withastro/roadmap/blob/feat/reroute/proposals/0047-rerouting.md). */ - rewriting: boolean; + rewriting?: boolean; }; }