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();