astro/.changeset/brown-shrimps-hug.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
342 B
Markdown
Raw Normal View History

---
'astro': minor
---
The `astro/middleware` module exports a new utility called `trySerializeLocals`.
This utility can be used by adapters to validate their `locals` before sending it
to the Astro middleware.
This function will throw a runtime error if the value passed is not serializable, so
consumers will need to handle that error.