Skip to content
Merged
18 changes: 5 additions & 13 deletions frontend/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { CookieBanner } from '@/components/shared/CookieBanner';
import Footer from '@/components/shared/Footer';
import { ScrollWatcher } from '@/components/shared/ScrollWatcher';
import { ThemeProvider } from '@/components/theme/ThemeProvider';
// import { getCachedBlogCategories } from '@/db/queries/blog/blog-categories';
import { getCachedBlogCategories } from '@/db/queries/blog/blog-categories';
import { AuthProvider } from '@/hooks/useAuth';
import { locales } from '@/i18n/config';

Expand All @@ -25,18 +25,10 @@ export default async function LocaleLayout({

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

// const [messages, blogCategories] = await Promise.all([
// getMessages({ locale }),
// getCachedBlogCategories(locale),
// ]);

const messages = await getMessages({ locale });
const blogCategories: Array<{
id: string;
slug: string;
title: string;
}> = [];

const [messages, blogCategories] = await Promise.all([
getMessages({ locale }),
getCachedBlogCategories(locale),
]);

const enableAdmin =
(
Expand Down
4 changes: 0 additions & 4 deletions frontend/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin('./i18n/request.ts');

const nextConfig: NextConfig = {
env: {
APP_ENV: process.env.APP_ENV,
DATABASE_URL: process.env.DATABASE_URL,
},
images: {
remotePatterns: [
{
Expand Down
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@

[[plugins]]
package = "@netlify/plugin-nextjs"

[[plugins]]
package = "netlify-plugin-bundle-env"
Loading