0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00
astro/packages
Matthew Phillips 306c9f9a9a
Keep clientAddress on cloned requests (#12613)
* Keep clientAddress on cloned requests

User observed that calling actions resulted in an error about not having
clientRequest available.

This is because the user had a middleware that cloned the request, which
loses all of the symbols.

The fix is to pass the clientAddress directly into the RenderContext.
This deprecates the `clientAddressSymbol`, but we need to keep it for
now because some adapters set the clientAddress that way.

Note that similar fixes should be done for other symbol usage on the
Request object (locals is one).

* changeset

* fix build stuff

* Update packages/astro/src/core/render-context.ts

* Update changeset
2024-12-05 13:10:21 +00:00
..
astro Keep clientAddress on cloned requests (#12613) 2024-12-05 13:10:21 +00:00
astro-prism [ci] release (#12567) 2024-12-03 10:56:34 +00:00
astro-rss fix(@astrojs/rss): use standard rss content type, add utf-8 charset (#12644) 2024-12-05 13:04:18 +00:00
create-astro [ci] release (#12567) 2024-12-03 10:56:34 +00:00
db fix(db): import base virtual module ID (#12628) 2024-12-04 15:04:06 +00:00
integrations [ci] release (#12595) 2024-12-03 13:28:23 +01:00
internal-helpers [ci] release (#12567) 2024-12-03 10:56:34 +00:00
markdown/remark [ci] release (#12567) 2024-12-03 10:56:34 +00:00
studio [ci] release (#12567) 2024-12-03 10:56:34 +00:00
telemetry [ci] release (#12567) 2024-12-03 10:56:34 +00:00
underscore-redirects [ci] release (#12567) 2024-12-03 10:56:34 +00:00
upgrade fix(upgrade): verify astro installation before upgrade to prevent false success (#12576) 2024-12-04 15:17:07 +08:00