feat: middleware

This commit is contained in:
shinya
2025-07-09 21:08:59 +08:00
parent 9416f40834
commit e42f830228
5 changed files with 29 additions and 24 deletions

View File

@@ -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).*)'],
};