0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/.changeset/brown-shrimps-hug.md
Emanuele Stoppa 9e5fafa2b2
feat: vercel edge middleware support (#7532)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-05 16:45:58 +01:00

342 B

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.