mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 02:56:39 +08:00
Fix matcher
This commit is contained in:
parent
6c4b92c1bf
commit
e1d65b24d5
@ -1,19 +1,5 @@
|
||||
export { default } from "next-auth/middleware";
|
||||
|
||||
export const config = {
|
||||
matcher: [
|
||||
/*
|
||||
* Match all request paths except for the ones starting with:
|
||||
* - login (login route)
|
||||
* - _next/static (static files)
|
||||
* - _next/image (image optimization files)
|
||||
* - favicon.ico (favicon file)
|
||||
* - prompts.json (prompts file)
|
||||
* - redirect.json (redirect file)
|
||||
* - serviceWorker.js (service worker file)
|
||||
* - serviceWorkerRegister.js (service worker register file)
|
||||
* - site.webmanifest (manifest file)
|
||||
*/
|
||||
"/((?!api|_next/static|_next/image|favicon.ico|prompts.json|redirect.json|serviceWorker.js|serviceWorkerRegister.js|site.webmanifest).*)",
|
||||
],
|
||||
matcher: "/((?!login|static|.*\\..*|_next).*)",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user