mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-23 06:58:07 +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 \
|
python3 \
|
||||||
make \
|
make \
|
||||||
g++ \
|
g++ \
|
||||||
|
build-essential \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Set a dummy database URL for build time
|
||||||
|
ENV DATABASE_URL="file:./build.db"
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
COPY prisma ./prisma/
|
COPY prisma ./prisma/
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import { redirect } from 'next/navigation';
|
|||||||
import { GlassCard } from '@/components/GlassCard';
|
import { GlassCard } from '@/components/GlassCard';
|
||||||
import { Trash2, LogOut, PlusCircle, Globe } from 'lucide-react';
|
import { Trash2, LogOut, PlusCircle, Globe } from 'lucide-react';
|
||||||
|
|
||||||
|
export const dynamic = 'force-dynamic';
|
||||||
|
|
||||||
export default async function AdminPage() {
|
export default async function AdminPage() {
|
||||||
const auth = await isAuthenticated();
|
const auth = await isAuthenticated();
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import { redirect } from 'next/navigation';
|
|||||||
import { MenuButton } from '@/components/MenuButton';
|
import { MenuButton } from '@/components/MenuButton';
|
||||||
import { ThemeToggle } from '@/components/ThemeToggle';
|
import { ThemeToggle } from '@/components/ThemeToggle';
|
||||||
|
|
||||||
|
export const dynamic = 'force-dynamic';
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
const configured = await isConfigured();
|
const configured = await isConfigured();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user