Enable dynamic rendering and update Next.js config

Added 'force-dynamic' export to admin orders and status pages for dynamic rendering. Updated next.config.mjs to modularize imports for better tree-shaking and switched to Turbopack for optimal bundle sizes. Upgraded Next.js and related dependencies in package.json and package-lock.json.
This commit is contained in:
g
2025-12-31 07:05:26 +00:00
parent 66e95438fe
commit c31604d29a
7 changed files with 932 additions and 397 deletions

View File

@@ -5,6 +5,8 @@ import { Server, Database, Cpu, HardDrive, Activity } from "lucide-react";
import { fetchServer } from "@/lib/api";
import SystemStatusCard from "@/components/admin/SystemStatusCard";
export const dynamic = 'force-dynamic';
interface SystemStatus {
uptimeSeconds: number;
memory: {