修复密码登录失败问题 & 过滤无需认证的路径

This commit is contained in:
2025-11-20 15:08:22 +08:00
parent c02ffc9983
commit 85d9ec09d4
2 changed files with 2 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ export default function Header(props: HeaderProps) {
<span></span>
</Link>
<Link
href="/login?type=sms"
href="/login"
className={[
`w-20 lg:w-24 h-10 lg:h-12 bg-linear-to-r rounded-sm flex items-center justify-center lg:text-lg text-white`,
`transition-colors duration-200 ease-in-out`,

View File

@@ -3,7 +3,7 @@ import {refreshAuth} from '@/actions/auth'
export const config = {
matcher: [
'/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*(?<!\.svg|\.webp|\.jpg)$)',
'/((?!api|_next/static|_next/image|.well-known|sw.js|favicon.ico|sitemap.xml|robots.txt).*(?<!\.svg|\.webp|\.jpg)$)',
],
}