mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 22:13:47 +08:00
fix build error
This commit is contained in:
@@ -27,13 +27,10 @@ async function handle(
|
||||
const get_access_token = await getAccessToken();
|
||||
|
||||
if (!get_access_token.ok) {
|
||||
return NextResponse.json(
|
||||
{ error: "获取access_token失败" },
|
||||
{
|
||||
status: get_access_token.status,
|
||||
statusText: get_access_token.statusText,
|
||||
},
|
||||
);
|
||||
return NextResponse.json({ error: "获取access_token失败" }, {
|
||||
status: get_access_token.status,
|
||||
statusText: get_access_token.statusText,
|
||||
} as any);
|
||||
}
|
||||
const access_token = await get_access_token.text();
|
||||
|
||||
@@ -42,3 +39,5 @@ async function handle(
|
||||
|
||||
export const GET = handle;
|
||||
// export const POST = handle;
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import LoginByGithub from "./loginByGithub";
|
||||
import LoginByGoogle from "./loginByGoogle";
|
||||
import UserLoginCore from "./user-login-core";
|
||||
import { Suspense } from "react";
|
||||
|
||||
export default function LoginPage() {
|
||||
return (
|
||||
@@ -14,7 +15,9 @@ export default function LoginPage() {
|
||||
{/*>*/}
|
||||
{/* */}
|
||||
{/*</Suspense>*/}
|
||||
<UserLoginCore />
|
||||
<Suspense>
|
||||
<UserLoginCore />
|
||||
</Suspense>
|
||||
</div>
|
||||
<div className="mx-auto mt-4 w-11/12 max-w-xs sm:w-full inline-flex items-center justify-center">
|
||||
{/*<Suspense*/}
|
||||
|
||||
Reference in New Issue
Block a user