mayank99 / astro-vercel-edge

Deploy Astro v4 on Vercel Edge Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[WARN] [deprecated] The adapter astro-vercel-edge is using a deprecated signature of the 'app.render()' method.

bizz84 opened this issue · comments

I'm using this library to deploy my Astro site with Vercel Edge.

Since Astro 4.x, my Vercel logs show a bunch of warnings about this issue:

11:51:06 [WARN] [deprecated] The adapter astro-vercel-edge is using a deprecated signature of the 'app.render()' method. From Astro 4.0, locals and routeData are provided as properties on an optional object to this method. Using the old signature will cause an error in Astro 5.0. See withastro/astro#9199 for more information.

Example:

Xnapper-2024-04-22-10 37 23

The relevant change was merged here:

Accordingly, I believe this library should be updated as well.

@mayank99 thank you so much for creating this library, I've been happily using it in production!

Fixed in 1.0.4