Update Next.js configuration for S3 support and enhance admin dashboard functionality - Added S3 hostname to next.config.js for image uploads - Updated package.json and package-lock.json with AWS SDK dependencies - Improved admin layout with S3 status component and enhanced dashboard statistics loading logic - Refactored news loading in NewsBlock component to handle errors gracefully.

This commit is contained in:
albivkt
2025-07-13 23:36:38 +03:00
parent c0e91bba1d
commit 162d96e9aa
21 changed files with 3675 additions and 137 deletions

View File

@ -12,6 +12,7 @@
"db:migrate": "prisma migrate dev",
"db:studio": "prisma studio",
"db:seed": "tsx scripts/seed.ts",
"migrate:images": "tsx scripts/migrate-images-to-s3.ts",
"pm2:start": "pm2 start ecosystem.config.js",
"pm2:stop": "pm2 stop ecosystem.config.js",
"pm2:restart": "pm2 restart ecosystem.config.js",
@ -21,16 +22,22 @@
"seed": "tsx scripts/seed.ts"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.844.0",
"@aws-sdk/s3-request-presigner": "^3.844.0",
"@prisma/client": "^6.11.1",
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-slot": "^1.1.2",
"@shadcn/ui": "^0.0.4",
"@types/multer": "^2.0.0",
"aws-sdk": "^2.1692.0",
"bcryptjs": "^2.4.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dotenv": "^17.2.0",
"framer-motion": "^12.3.1",
"jsonwebtoken": "^9.0.2",
"lucide-react": "^0.474.0",
"multer": "^2.0.1",
"next": "^15.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",