mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
没啥变化
This commit is contained in:
parent
39c96dce59
commit
1bc010fb37
@ -599,7 +599,7 @@ export function ModalSelector<T extends CheckGroupValueType>(props: {
|
||||
onClose?: () => void;
|
||||
multiple?: boolean;
|
||||
}) {
|
||||
console.log("-----", props);
|
||||
// console.log("-----", props);
|
||||
|
||||
const getCheckCardAvatar = (value: string): React.ReactNode => {
|
||||
if (value.startsWith("gpt")) {
|
||||
|
@ -183,6 +183,10 @@ export const authOptions: NextAuthOptions = {
|
||||
// console.log('---', user, 'account', account, 'email', email, 'exist', existingUser)
|
||||
// 顺便过滤掉不允许登录的用户
|
||||
return !!existingUser && existingUser.allowToLogin;
|
||||
},
|
||||
// 重定向
|
||||
async redirect({ url, baseUrl }) {
|
||||
return baseUrl;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
@ -11,7 +11,6 @@ export default async function middleware(req: NextRequest) {
|
||||
const path = `${url.pathname}${
|
||||
searchParams.length > 0 ? `?${searchParams}` : ""
|
||||
}`;
|
||||
console.log('----', url)
|
||||
// 直接将/app/下面路由重定向到顶层
|
||||
if (path.startsWith('/app')) {
|
||||
return NextResponse.redirect(new URL(path.replace('/app', ''), req.url), 301);
|
||||
|
Loading…
Reference in New Issue
Block a user