用服务器组件写了点/folders
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-11 22:01:32 +08:00
parent d4f786c990
commit 94d570557b
13 changed files with 291 additions and 167 deletions

10
src/app/folders/page.tsx Normal file
View File

@@ -0,0 +1,10 @@
import FoldersClient from "./FoldersClient";
import { redirect } from "next/navigation";
import { getServerSession } from "next-auth";
export default async function FoldersPage() {
const session = await getServerSession();
if (!session?.user?.name) redirect(`/login`);
return (
<FoldersClient username={session.user.name} />
);
}