From 5a3e5a2c1df13a774909c88b5a910c88f630c45c Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Mon, 30 Sep 2024 15:50:38 +0100 Subject: [PATCH] Fix redirects in middleware --- src/middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middleware.ts b/src/middleware.ts index 9bd80ce..71f3c1c 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -7,11 +7,11 @@ export const config = { }; const PATTERNS: [ URLPattern, - ({ pathname }: { pathname: { groups: any } }) => any, + ({ pathname }: { pathname: { groups: unknown } }) => unknown, ][] = [ [ new URLPattern({ pathname: "/i/:id" }), - ({ pathname }: { pathname: { groups: any } }) => pathname.groups, + ({ pathname }: { pathname: { groups: unknown } }) => pathname.groups, ], ];