Zum Inhalt springen

Forbidden rewrite to a static route.

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

ForbiddenRewrite: You tried to rewrite the on-demand route 'FROM' with the static route 'TO', when using the 'server' output.

The 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 anHTML file, which can't be retrieved at runtime by Astro.

What went wrong?

Astro.rewrite() can't be used to rewrite an on-demand route with a static route when using the "server" output.

Wirke mit Community Sponsor