From 16113c3ae2ebff96136ebd31958fc5eb4369ee0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Seery?= Date: Mon, 12 Sep 2022 15:40:48 -0300 Subject: [PATCH] [vercel] Use Edge Functions instead of Edge Middlewares (#4713) * Don't use middleware * changeset * breaking change --- .changeset/polite-beds-happen.md | 5 +++++ packages/integrations/vercel/src/edge/adapter.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/polite-beds-happen.md diff --git a/.changeset/polite-beds-happen.md b/.changeset/polite-beds-happen.md new file mode 100644 index 000000000..81d637cae --- /dev/null +++ b/.changeset/polite-beds-happen.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vercel': major +--- + +Use Edge Functions instead of Edge Middlewares diff --git a/packages/integrations/vercel/src/edge/adapter.ts b/packages/integrations/vercel/src/edge/adapter.ts index 14dac655d..72001be99 100644 --- a/packages/integrations/vercel/src/edge/adapter.ts +++ b/packages/integrations/vercel/src/edge/adapter.ts @@ -68,7 +68,7 @@ export default function vercelEdge(): AstroIntegration { routes: [ ...getRedirects(routes, _config), { handle: 'filesystem' }, - { src: '/.*', middlewarePath: 'render' }, + { src: '/.*', dest: 'render' }, ], }); },