mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 07:26:43 +00:00
fix: 修复 eslint 报错
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user