[vercel] Use Edge Functions instead of Edge Middlewares (#4713)

* Don't use middleware

* changeset

* breaking change
This commit is contained in:
Juan Martín Seery 2022-09-12 15:40:48 -03:00 committed by GitHub
parent 0dba3b6f3f
commit 16113c3ae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/vercel': major
---
Use Edge Functions instead of Edge Middlewares

View file

@ -68,7 +68,7 @@ export default function vercelEdge(): AstroIntegration {
routes: [
...getRedirects(routes, _config),
{ handle: 'filesystem' },
{ src: '/.*', middlewarePath: 'render' },
{ src: '/.*', dest: 'render' },
],
});
},