Files
mb-grid-solutions.com/app/[locale]/page.tsx
Marc Mintel 52480b4f55
Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🧪 QA (push) Failing after 3m5s
🚀 Build & Deploy / 🏗️ Build (push) Failing after 13m16s
🚀 Build & Deploy / 🚀 Deploy (push) Has been skipped
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
🚀 Build & Deploy / 🔔 Notify (push) Successful in 2s
fix: resolve linting errors and increase node heap size for CI stability
2026-05-04 13:56:33 +02:00

33 lines
971 B
TypeScript

import React from "react";
import { Metadata } from "next";
import HomeContent from "@/components/HomeContent";
export const metadata: Metadata = {
title: "MB Grid Solutions | Energiekabelprojekte & Technische Beratung",
description:
"Ihr spezialisierter Partner für herstellerneutrale technische Beratung und Projektbegleitung bei Energiekabelprojekten bis 110 kV.",
};
interface PageProps {
params: Promise<{ locale: string }>;
}
export default async function Page({ params }: PageProps) {
const { locale } = await params;
// Dynamically import the MDX content based on locale
let Content: React.ComponentType;
try {
const mdx = await import(`@/content/${locale}/index.mdx`);
Content = mdx.default;
} catch {
// Fallback if MDX is not yet created for this locale
return <HomeContent />;
}
// Render the MDX content.
// We can use mdx-components.tsx to map MDX tags to our high-fidelity sections.
return <Content />;
}