Skip to content

Commit 04002de

Browse files
committed
fix(opengraph): update image filename in metadata
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
1 parent bd5a643 commit 04002de

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed
File renamed without changes.

src/app/layout.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const robotoMono = Roboto_Mono({
1010
subsets: ["latin"],
1111
});
1212

13+
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke";
14+
1315
export const metadata: Metadata = {
1416
title: "Welcome to PyCon Kenya 2025",
1517
description: "Africa's largest Python conference, held in Nairobi, Kenya.",
@@ -33,14 +35,14 @@ export const metadata: Metadata = {
3335
title: "Welcome to PyCon Kenya 2025",
3436
description:
3537
"Africa's largest Python conference, held in Nairobi, Kenya. Join us for a weekend of inspiring talks, informative workshops, and fun networking events.",
36-
url: process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke",
38+
url: baseUrl,
3739
siteName: "PyConKE 2025",
3840
images: [
3941
{
40-
url: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
41-
secureUrl: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
42+
url: `${baseUrl}/opengraph-image.jpg`,
43+
secureUrl: `${baseUrl}/opengraph-image.jpg`,
4244
alt: "PyConKE 2025",
43-
type: "image/png",
45+
type: "image/jpeg",
4446
width: 1200,
4547
height: 630,
4648
},
@@ -53,10 +55,10 @@ export const metadata: Metadata = {
5355
"Africa's largest Python conference, held in Nairobi, Kenya. Join us for a weekend of inspiring talks, informative workshops, and fun networking events.",
5456
images: [
5557
{
56-
url: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
57-
secureUrl: `${process.env.NEXT_PUBLIC_BASE_URL || "https://pycon.ke"}/opengraph.jpg`,
58+
url: `${baseUrl}/opengraph-image.jpg`,
59+
secureUrl: `${baseUrl}/opengraph-image.jpg`,
5860
alt: "PyConKE 2025",
59-
type: "image/png",
61+
type: "image/jpeg",
6062
width: 1200,
6163
height: 630,
6264
},
@@ -69,7 +71,6 @@ export default function RootLayout({
6971
}: Readonly<{
7072
children: React.ReactNode;
7173
}>) {
72-
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL;
7374
return (
7475
<html lang="en">
7576
<body className={`${robotoMono.className} antialiased`}>

src/app/opengraph-image.jpg

179 KB
Loading

0 commit comments

Comments
 (0)