Skip to content

Commit 75662f4

Browse files
liudmylasovetovsViktorSvertoka
authored andcommitted
fix(layout): temporarily disable blog categories DB fetch in locale layout
1 parent 79191c2 commit 75662f4

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

frontend/app/[locale]/layout.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { CookieBanner } from '@/components/shared/CookieBanner';
1010
import Footer from '@/components/shared/Footer';
1111
import { ScrollWatcher } from '@/components/shared/ScrollWatcher';
1212
import { ThemeProvider } from '@/components/theme/ThemeProvider';
13-
import { getCachedBlogCategories } from '@/db/queries/blog/blog-categories';
13+
// import { getCachedBlogCategories } from '@/db/queries/blog/blog-categories';
1414
import { AuthProvider } from '@/hooks/useAuth';
1515
import { locales } from '@/i18n/config';
1616

@@ -25,10 +25,17 @@ export default async function LocaleLayout({
2525

2626
if (!locales.includes(locale as any)) notFound();
2727

28-
const [messages, blogCategories] = await Promise.all([
29-
getMessages({ locale }),
30-
getCachedBlogCategories(locale),
31-
]);
28+
// const [messages, blogCategories] = await Promise.all([
29+
// getMessages({ locale }),
30+
// getCachedBlogCategories(locale),
31+
// ]);
32+
33+
const messages = await getMessages({ locale });
34+
const blogCategories: Array<{
35+
id: string;
36+
slug: string;
37+
title: string;
38+
}> = [];
3239

3340
const enableAdmin =
3441
(

0 commit comments

Comments
 (0)