fix: 修复 eslint 报错

This commit is contained in:
LooseLi
2025-05-27 10:06:47 +08:00
parent 3366dd4a6c
commit 84236f3cff
12 changed files with 29 additions and 22 deletions

View File

@@ -64,7 +64,7 @@ const noAuthMiddleware = async (req: NextRequest, ev: any) => {
* 鉴权中间件
*/
const authMiddleware = process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
? clerkMiddleware(async (auth, req) => {
? clerkMiddleware((auth, req) => {
const { userId } = auth()
// 处理 /dashboard 路由的登录保护
if (isTenantRoute(req)) {