컨텐츠로 건너뛰기

Forbidden rewrite to a static route.

이 내용은 아직 번역본이 없습니다.

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 an HTML file, which can’t be retrieved at runtime by Astro.

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

기여하기

여러분의 생각을 들려주세요!

GitHub Issue 생성

우리에게 가장 빨리 문제를 알려줄 수 있어요.

커뮤니티