Skip to content

Commit c3180b2

Browse files
use og image through screenshothis url
1 parent 98bc28d commit c3180b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/web/src/app/layout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const poppins = Poppins({
1212
weight: ["400", "500", "600", "700", "800"],
1313
});
1414

15+
const ogImage =
16+
"https://api.screenshothis.com/v1/screenshots/take?api_key=ss_live_jRNSxQeqoZAfIZlqGOmzEAOlValCYtNIAlcPlmEbyGjvECgQHKCOJpMBTFTOjRAQ&url=https%3A%2F%2Fbetter-t-stack.amanv.dev%2F&width=1200&height=630&block_ads=true&block_cookie_banners=true&block_trackers=true&device_scale_factor=0.75&prefers_color_scheme=dark&is_cached=true";
17+
1518
export const metadata: Metadata = {
1619
title: "Better-T Stack",
1720
description:
@@ -55,7 +58,7 @@ export const metadata: Metadata = {
5558
siteName: "Better-T Stack",
5659
images: [
5760
{
58-
url: "/image.jpg",
61+
url: ogImage,
5962
width: 1200,
6063
height: 630,
6164
alt: "Better-T Stack",
@@ -69,7 +72,7 @@ export const metadata: Metadata = {
6972
title: "Better-T Stack",
7073
description:
7174
"A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
72-
images: ["/image.jpg"],
75+
images: [ogImage],
7376
},
7477
robots: {
7578
index: true,

0 commit comments

Comments
 (0)