feat: implement core platform features including business directory, admin dashboard, authentication, and API infrastructure
Some checks failed
Build and Push App / build (push) Failing after 16m2s

This commit is contained in:
2026-04-18 22:10:19 +02:00
parent 6ec1a3ae84
commit 3e2063e4fa
89 changed files with 4405 additions and 967 deletions

View File

@@ -2,7 +2,6 @@ import React from 'react';
import Link from 'next/link';
import { ArrowRight } from 'lucide-react';
import { prisma } from '../../lib/prisma';
import { MOCK_BLOG_POSTS } from '../../lib/mockData';
export const revalidate = 3600; // Revalidate every hour
@@ -14,11 +13,8 @@ export default async function BlogPage() {
orderBy: { createdAt: 'desc' }
});
} catch (error) {
console.error("Database connection failed on blog page, using mock data.");
posts = MOCK_BLOG_POSTS.map(p => ({
...p,
createdAt: new Date(p.date), // Map mock date to createdAt to satisfy frontend
}));
console.error("Database connection failed on blog page.");
posts = [];
}
return (