From 92109c4e93d05bb6a6f8a7d1cf37602f0a979225 Mon Sep 17 00:00:00 2001 From: Alexander Kadyrov Date: Wed, 20 Nov 2024 20:23:51 +0400 Subject: [PATCH] Move Open Graph image --- {src/app => public}/opengraph-image.png | Bin src/app/layout.tsx | 12 ++++++++++++ src/app/opengraph-image.alt.txt | 1 - 3 files changed, 12 insertions(+), 1 deletion(-) rename {src/app => public}/opengraph-image.png (100%) delete mode 100644 src/app/opengraph-image.alt.txt diff --git a/src/app/opengraph-image.png b/public/opengraph-image.png similarity index 100% rename from src/app/opengraph-image.png rename to public/opengraph-image.png diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 138b822..5ae3490 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,6 +2,7 @@ import PlausibleProvider from 'next-plausible' import { ThemeProvider } from 'next-themes' import React from 'react' import { env } from '@/lib/env' +import OpenGraphImage from '../../public/opengraph-image.png' import type { Metadata } from 'next' import '@/app/globals.css' @@ -10,6 +11,17 @@ export const metadata: Metadata = { title: 'Validate Your Product or Startup Idea Fast | CheckMVP', description: 'Stop wasting time on product ideas without a market. CheckMVP helps you validate your concept in just a minute.', + openGraph: { + images: [ + { + url: OpenGraphImage.src, + alt: 'Validate Your Product or Startup Idea Fast with CheckMVP', + width: OpenGraphImage.width, + height: OpenGraphImage.height, + type: 'image/png', + }, + ], + }, } export default function RootLayout({ diff --git a/src/app/opengraph-image.alt.txt b/src/app/opengraph-image.alt.txt deleted file mode 100644 index bfe9c82..0000000 --- a/src/app/opengraph-image.alt.txt +++ /dev/null @@ -1 +0,0 @@ -Validate Your Product or Startup Idea Fast with CheckMVP