blob: 53ab43b2ef8ac1e0e8cee1fb3634733a1468b737 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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.
|