middleware: added exception for webworker source file
This commit is contained in:
@@ -43,7 +43,8 @@ export default async function middleware(req: NextRequest) {
|
||||
|
||||
export const config = {
|
||||
// for these paths middleware will not be called
|
||||
// `pdf.worker.min.mjs` is a web worker code used by pdf.js
|
||||
matcher: [
|
||||
'/((?!api|_next/static|_next/image|.*\\.png$|.*\\.webm$).*)',
|
||||
'/((?!api|_next/static|_next/image|.*\\.png$|pdf.worker.min.mjs$|.*\\.webm$).*)',
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user