mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
bf90a5343f
* feat(next): TODOs * fix: remove todos * Updates tests to not assign locals * Changesets * Update .changeset/cool-mangos-shop.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/blue-sloths-stare.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/blue-sloths-stare.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/blue-sloths-stare.md --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
601 B
601 B
astro |
---|
patch |
render()
signature now takes renderOptions
as 2nd argument
The signature for app.render()
has changed, and the second argument is now an options object called renderOptions
with more options for customizing rendering.
The renderOptions
are:
addCookieHeader
: Determines whether Astro will set theSet-Cookie
header, otherwise the adapter is expected to do so itself.clientAddress
: The client IP address used to setAstro.clientAddress
.locals
: An object of locals that's set toAstro.locals
.routeData
: An object specifying the route to use.