Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Nov 11, 2024
1 parent 20f1118 commit db29dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db29dd4

Please sign in to comment.