mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 23:06:36 +08:00
登录界面优化
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ export function proxy(request: NextRequest) {
|
||||
}
|
||||
|
||||
/* 页面请求:公共路由放行 */
|
||||
const publicRoutes = ['/', '/login', '/callback', '/privacy', '/terms']
|
||||
const publicRoutes = ['/', '/login', '/register', '/callback', '/privacy', '/terms']
|
||||
const publicPrefixes = ['/docs/', '/epay/']
|
||||
|
||||
if (publicRoutes.includes(pathname) || publicPrefixes.some(p => pathname.startsWith(p))) {
|
||||
|
||||
Reference in New Issue
Block a user