diff options
Diffstat (limited to '.changeset/blue-sloths-stare.md')
-rw-r--r-- | .changeset/blue-sloths-stare.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.changeset/blue-sloths-stare.md b/.changeset/blue-sloths-stare.md new file mode 100644 index 000000000..53ab43b2e --- /dev/null +++ b/.changeset/blue-sloths-stare.md @@ -0,0 +1,14 @@ +--- +'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 the `Set-Cookie` header, otherwise the adapter is expected to do so itself. +- `clientAddress`: The client IP address used to set `Astro.clientAddress`. +- `locals`: An object of locals that's set to `Astro.locals`. +- `routeData`: An object specifying the route to use. |