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

@ -13,7 +13,8 @@ export async function GET(request: NextRequest) {
const search = searchParams.get('search');
const slug = searchParams.get('slug');
const featured = searchParams.get('featured') === 'true';
const published = searchParams.get('published') !== 'false';
const publishedParam = searchParams.get('published');
const published = publishedParam === 'all' ? undefined : publishedParam !== 'false';
const sortBy = searchParams.get('sortBy') || 'publishedAt';
const sortOrder = searchParams.get('sortOrder') || 'desc';