0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

Update errors-data.ts for Astro.rewrite release in 4.13 (#11580)

* Update errors-data.ts

* chore: remove unused error

* deprecate the error instead

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
This commit is contained in:
Sarah Rainsberger 2024-07-31 10:41:52 -03:00 committed by GitHub
parent 750d5328c9
commit 6aaeec5034
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1141,6 +1141,7 @@ export const MissingMiddlewareForInternationalization = {
} satisfies ErrorData;
/**
* @deprecated
* @docs
* @description
* The user tried to rewrite using a route that doesn't exist, or it emitted a runtime error during its rendering phase.
@ -1280,7 +1281,7 @@ export const ServerOnlyModule = {
*
* @see
* - [Request.clone()](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone)
* - [Astro.rewrite](https://docs.astro.build/en/reference/configuration-reference/#experimentalrewriting)
* - [Astro.rewrite](https://docs.astro.build/en/reference/api-reference/#astrorewrite)
*/
export const RewriteWithBodyUsed = {