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.