feat: mise à jour sécurité CVE-2025-55182 (Next.js 15.5.7, React 19.1.2)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { auth } from "@/auth";
|
||||
import { redirect } from "next/navigation";
|
||||
import AddProjectForm from "./AddProjectForm";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const metadata = { title: "Ajouter un projet | Dashboard" };
|
||||
|
||||
export default async function AddProjectPage() {
|
||||
const session = await auth();
|
||||
if (!session) redirect("/");
|
||||
|
||||
return (
|
||||
<section className="mx-auto max-w-xl px-4 py-10">
|
||||
<div className="">
|
||||
<h1 className="text-xl font-semibold text-red-400">
|
||||
Ajouter un projet
|
||||
</h1><br />
|
||||
<AddProjectForm />
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user