From db29dd4e652886957cf003557f60d61b8dfc6677 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 11 Nov 2024 14:46:20 +0000 Subject: [PATCH] apply suggestion --- packages/astro/src/core/errors/errors-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index b7efbfc2a223..7c5479a665f5 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -1268,7 +1268,7 @@ export const RewriteWithBodyUsed = { */ export const ForbiddenRewrite = { name: 'ForbiddenRewrite', - title: "Can't use `Astro.rewrite()` from an on-demand route to static route with 'server' output.", + title: 'Forbidden rewrite to a static route.', message: (from: string, to: string, component: string) => `You tried to rewrite the on-demand route '${from}' with the static route '${to}', when using the 'server' output. \n\nThe static route '${to}' is rendered by the component '${component}', which is marked as prerendered. This is a forbidden operation because during the build the component '${component}' is compiled to an