We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc7cdaa + ff225e4 commit 216d016Copy full SHA for 216d016
apps/staking/src/middleware.ts
@@ -47,5 +47,8 @@ const isBlockedSegment = ({ nextUrl: { pathname } }: NextRequest) =>
47
pathname.startsWith(`/${VPN_BLOCKED_SEGMENT}`);
48
49
export const config = {
50
- matcher: [String.raw`/((?!_next/static|_next/image|.*\.).*)`],
+ // Next.js requires that this is a static string and fails to read it if it's
51
+ // a String.raw, so let's disable this rule
52
+ // eslint-disable-next-line unicorn/prefer-string-raw
53
+ matcher: ["/((?!_next/static|_next/image|.*\\.).*)"],
54
};
0 commit comments