Skip to content

Commit

Permalink
[vercel] Use Edge Functions instead of Edge Middlewares (#4713)
Browse files Browse the repository at this point in the history
* Don't use middleware

* changeset

* breaking change
  • Loading branch information
JuanM04 committed Sep 12, 2022
1 parent 0dba3b6 commit 16113c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-beds-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': major
---

Use Edge Functions instead of Edge Middlewares
2 changes: 1 addition & 1 deletion packages/integrations/vercel/src/edge/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function vercelEdge(): AstroIntegration {
routes: [
...getRedirects(routes, _config),
{ handle: 'filesystem' },
{ src: '/.*', middlewarePath: 'render' },
{ src: '/.*', dest: 'render' },
],
});
},
Expand Down

0 comments on commit 16113c3

Please sign in to comment.