mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-24 04:04:43 +08:00
feat: middleware
This commit is contained in:
@@ -146,10 +146,5 @@ function shouldSkipAuth(pathname: string): boolean {
|
||||
|
||||
// 配置middleware匹配规则
|
||||
export const config = {
|
||||
matcher: [
|
||||
/*
|
||||
* 匹配所有请求路径,除了静态文件
|
||||
*/
|
||||
'/((?!_next/static|_next/image|favicon.ico).*)',
|
||||
],
|
||||
matcher: ['/((?!_next/static|_next/image|favicon.ico|api).*)'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user