diff --git a/app/layout.tsx b/app/layout.tsx index 824c1a2..94ce133 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -10,6 +10,7 @@ const inter = Inter({ }); export const metadata: Metadata = { + metadataBase: new URL("https://www.mb-grid-solutions.com"), title: { default: "MB Grid Solutions | Energiekabelprojekte & Technische Beratung", template: "%s | MB Grid Solutions" @@ -31,20 +32,11 @@ export const metadata: Metadata = { siteName: "MB Grid Solutions", title: "MB Grid Solutions | Energiekabelprojekte & Technische Beratung", description: "Spezialisierter Partner für Energiekabelprojekte bis 110 kV. Herstellerneutrale technische Beratung und Projektbegleitung.", - images: [ - { - url: "/assets/logo.png", - width: 800, - height: 600, - alt: "MB Grid Solutions Logo", - }, - ], }, twitter: { card: "summary_large_image", title: "MB Grid Solutions | Energiekabelprojekte & Technische Beratung", description: "Spezialisierter Partner für Energiekabelprojekte bis 110 kV.", - images: ["/assets/logo.png"], }, robots: { index: true, diff --git a/app/opengraph-image.tsx b/app/opengraph-image.tsx new file mode 100644 index 0000000..ca37ae9 --- /dev/null +++ b/app/opengraph-image.tsx @@ -0,0 +1,175 @@ +import { ImageResponse } from 'next/og'; + +export const runtime = 'edge'; + +export const alt = 'MB Grid Solutions | Energiekabelprojekte & Technische Beratung'; +export const size = { + width: 1200, + height: 630, +}; + +export const contentType = 'image/png'; + +export default async function Image() { + return new ImageResponse( + ( +