コンテンツにスキップ
This is an unmaintained snapshot of the Astro v4 docs. View the latest docs.

Cannot use Astro.rewrite after the request body has been read

このコンテンツはまだ日本語訳がありません。

RewriteWithBodyUsed: Astro.rewrite() cannot be used if the request body has already been read. If you need to read the body, first clone the request.

Astro.rewrite() cannot be used if the request body has already been read. If you need to read the body, first clone the request. For example:

const data = await Astro.request.clone().formData();
Astro.rewrite("/target")

See Also:

貢献する

どんなことを?

GitHub Issueを作成

チームに素早く問題を報告できます。

コミュニティ