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

@@ -54,7 +54,7 @@
"input-otp": "1.4.1",
"jwt-decode": "^4.0.0",
"lucide-react": "^0.454.0",
"next": "^15.2.6",
"next": "^16.1.1",
"next-themes": "latest",
"react": "^19.0.0",
"react-day-picker": "8.10.1",
@@ -73,7 +73,7 @@
},
"devDependencies": {
"@distube/ytdl-core": "^4.16.12",
"@next/bundle-analyzer": "^15.4.6",
"@next/bundle-analyzer": "^16.1.1",
"@tailwindcss/typography": "^0.5.16",
"@types/lodash": "^4.17.16",
"@types/node": "^22",
@@ -81,7 +81,7 @@
"@types/react-dom": "^18",
"cross-env": "^7.0.3",
"eslint": "^9.19.0",
"eslint-config-next": "^15.2.3",
"eslint-config-next": "^16.1.1",
"postcss": "^8",
"tailwindcss": "^3.4.17",
"typescript": "^5"