mirror of
https://github.com/fergalmoran/opengifame.git
synced 2025-12-22 09:38:44 +00:00
Fix redirects in middleware
This commit is contained in:
@@ -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,
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user