mirror of
https://github.com/fergalmoran/opengifame.git
synced 2025-12-22 17:49:18 +00:00
Fix redirects in middleware
This commit is contained in:
@@ -7,11 +7,11 @@ export const config = {
|
|||||||
};
|
};
|
||||||
const PATTERNS: [
|
const PATTERNS: [
|
||||||
URLPattern,
|
URLPattern,
|
||||||
({ pathname }: { pathname: { groups: any } }) => any,
|
({ pathname }: { pathname: { groups: unknown } }) => unknown,
|
||||||
][] = [
|
][] = [
|
||||||
[
|
[
|
||||||
new URLPattern({ pathname: "/i/:id" }),
|
new URLPattern({ pathname: "/i/:id" }),
|
||||||
({ pathname }: { pathname: { groups: any } }) => pathname.groups,
|
({ pathname }: { pathname: { groups: unknown } }) => pathname.groups,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user