From 3f15c228f8f3e5afad466c6b18b07feed79248d9 Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Fri, 10 Apr 2026 10:11:51 +0200 Subject: [PATCH] feat: implement admin dashboard and home menu pages with updated Docker build configuration --- Dockerfile | 4 ++++ app/admin/page.tsx | 2 ++ app/page.tsx | 2 ++ 3 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 55e1bda..0405c70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,12 @@ RUN apt-get update && apt-get install -y \ python3 \ make \ g++ \ + build-essential \ && rm -rf /var/lib/apt/lists/* +# Set a dummy database URL for build time +ENV DATABASE_URL="file:./build.db" + COPY package*.json ./ COPY prisma ./prisma/ diff --git a/app/admin/page.tsx b/app/admin/page.tsx index 20cde04..c740827 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -4,6 +4,8 @@ import { redirect } from 'next/navigation'; import { GlassCard } from '@/components/GlassCard'; import { Trash2, LogOut, PlusCircle, Globe } from 'lucide-react'; +export const dynamic = 'force-dynamic'; + export default async function AdminPage() { const auth = await isAuthenticated(); diff --git a/app/page.tsx b/app/page.tsx index 197f08b..46f7944 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -4,6 +4,8 @@ import { redirect } from 'next/navigation'; import { MenuButton } from '@/components/MenuButton'; import { ThemeToggle } from '@/components/ThemeToggle'; +export const dynamic = 'force-dynamic'; + export default async function Home() { const configured = await isConfigured();