Add dotenv package for environment variable management and update pnpm-lock.yaml. Adjust layout in RegisterPage and LoginPage components for improved responsiveness. Enhance AdminPanel with ChallengeManagement section and update navigation links for challenges. Refactor Prisma schema to include Challenge model and related enums.
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 3m2s

This commit is contained in:
Julien Froidefond
2025-12-15 15:16:54 +01:00
parent 9518eef3d4
commit f093977b34
34 changed files with 11414 additions and 9081 deletions

28
app/challenges/page.tsx Normal file
View File

@@ -0,0 +1,28 @@
import { redirect } from "next/navigation";
import { auth } from "@/lib/auth";
import { getBackgroundImage } from "@/lib/preferences";
import NavigationWrapper from "@/components/navigation/NavigationWrapper";
import ChallengesSection from "@/components/challenges/ChallengesSection";
export const dynamic = "force-dynamic";
export default async function ChallengesPage() {
const session = await auth();
if (!session?.user) {
redirect("/login");
}
const backgroundImage = await getBackgroundImage(
"home",
"/got-background.jpg"
);
return (
<main className="min-h-screen bg-black relative">
<NavigationWrapper />
<ChallengesSection backgroundImage={backgroundImage} />
</main>
);
}