fix: production prisma engine and error handling
This commit is contained in:
10
app/page.tsx
10
app/page.tsx
@@ -18,7 +18,15 @@ export default async function Page() {
|
||||
});
|
||||
|
||||
if (!restaurant) {
|
||||
return <div>Veritabanı yükleniyor...</div>;
|
||||
return (
|
||||
<div style={{ background: '#000', color: '#fff', height: '100vh', display: 'flex', alignItems: 'center', justifyContent: 'center', textAlign: 'center', padding: '20px' }}>
|
||||
<div>
|
||||
<h1 style={{ color: 'var(--gold)' }}>LUNA</h1>
|
||||
<p>Henüz menü verisi bulunamadı veya veritabanı bağlantısı kurulamadı.</p>
|
||||
<p style={{ fontSize: '0.8rem', color: '#666' }}>Lütfen admin panelinden bir restoran ve kategori oluşturulduğundan emin olun.</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// Map database structure to the structure expected by MenuView
|
||||
|
||||
Reference in New Issue
Block a user