Skip to content

Commit 689f4a4

Browse files
committed
Updated middlewara
1 parent 3112828 commit 689f4a4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/middleware.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type {NextRequest} from 'next/server';
2-
import {NextResponse} from 'next/server';
1+
import type { NextRequest } from 'next/server';
2+
import { NextResponse } from 'next/server';
33
import docsConfig from '../docs.config.js';
44

55
const {updatedRedirectsData} = require('./data/redirects.ts');
@@ -137,8 +137,5 @@ export function middleware(request: NextRequest) {
137137
}
138138

139139
export const config = {
140-
matcher: [
141-
'/((?!api|_next/static|_next/image|assets|favicon.ico|sw.js).*)',
142-
'/admin/:path*'
143-
]
140+
matcher: ['/((?!api|_next/static|_next/image|assets|favicon.ico|sw.js).*)', '/community-forum']
144141
};

0 commit comments

Comments
 (0)