mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-12 01:38:39 +02:00
feat: implement admin dashboard and home menu pages with updated Docker build configuration
This commit is contained in:
1 parent
6c0aef1d88
commit
3f15c228f8
3 files changed
+8
No files matched your search
@@ -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/
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user