0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/.changeset/itchy-oranges-relate.md
Arsh cfbaa8a767
deprecation(vercel): vercel-edge-middleware.js file (#10476)
* deprecation(vercel): `vercel-edge-middleware.js` file

* add changeset

* `Astro.locals.waitUntil()` -> `Astro.locals.vercel.edge.waitUntil()`

* export edge locals interface
2024-03-20 20:03:17 +05:30

396 B

@astrojs/vercel
minor

The special-case handling of src/vercel-edge-middleware.js file is now deprecated. This file allowed you to access the edge runtime's RequestContext object, and create the middleware locals from its fields. However, this object includes only one field - the waitUntil() function - which is now available directly as ctx.locals.vercel.edge.waitUntil().