Aller au contenu

Réécriture interdite sur une route statique.

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.

Qu'est-ce qui a mal tourné ?

Astro.rewrite() ne peut pas être utilisé pour réécrire une route à la demande avec une route statique lors de l'utilisation du mode de sortie "server".

Contribuer Communauté Parrainer