diff --git a/README-ZH.md b/README-ZH.md index 51fb499..b765928 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -68,8 +68,8 @@ E2B_API_KEY=your_e2b_api_key GLM_MODLE=glm-4-flash # Neon Auth(认证功能必填) -PUBLIC_NEON_AUTH_URL=your_neon_auth_url -NEON_DATA_PUBLIC_API_URL=your_neon_api_url +NEON_AUTH_BASE_URL=your_neon_auth_url +NEON_AUTH_COOKIE_SECRET=your_cookie_secret # Cloudflare R2(文件上传功能必填) CLOUDFLARE_ACCOUNT_ID=your_account_id diff --git a/README.md b/README.md index 52a182f..a5dbe67 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ E2B_API_KEY=your_e2b_api_key GLM_MODLE=glm-4-flash # Neon Auth (Required for authentication) -PUBLIC_NEON_AUTH_URL=your_neon_auth_url -NEON_DATA_PUBLIC_API_URL=your_neon_api_url +NEON_AUTH_BASE_URL=your_neon_auth_url +NEON_AUTH_COOKIE_SECRET=your_cookie_secret # Cloudflare R2 (Required for file upload) CLOUDFLARE_ACCOUNT_ID=your_account_id diff --git a/app/api/auth/[...path]/route.ts b/app/api/auth/[...path]/route.ts new file mode 100644 index 0000000..16ed1c4 --- /dev/null +++ b/app/api/auth/[...path]/route.ts @@ -0,0 +1,3 @@ +import { auth } from "@/lib/auth/server"; + +export const { GET, POST } = auth.handler(); diff --git a/app/chat/[id]/page.tsx b/app/chat/[id]/page.tsx index a2c4604..0f7ef35 100644 --- a/app/chat/[id]/page.tsx +++ b/app/chat/[id]/page.tsx @@ -129,15 +129,15 @@ const ChatPage = ({ params }: ChatPageProps) => {
{t("arguments")}
-
+
{JSON.stringify(event.args, null, 2)}
{t("result")}
-
+
{JSON.stringify(event.result, null, 2)}
{t("noEvents")}
@@ -132,7 +131,7 @@ const DebugPanel = memo(() => {
+
{text}
{textPart.text}
++ {textPart.text} +