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
Some checks failed
Build and Push App / build (push) Failing after 16m2s
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user