Skip to content

Commit 9a44ef8

Browse files
committed
feat: fixed more ts errors
1 parent 99bdf41 commit 9a44ef8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/components/Layout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ export default function Layout({ children, title, description }: Props) {
1818
openGraph={{
1919
type: "website",
2020
locale: "en_US",
21-
url: `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/landing-page-screenshot.png`,
21+
url: `https://${
22+
process.env.NEXT_PUBLIC_VERCEL_URL as string
23+
}/landing-page-screenshot.png`,
2224
site_name: `Developer DAO Academy`,
2325
title: `Developer DAO Academy | ${title}`,
2426
description: description,
2527
images: [
2628
{
27-
url: `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/landing-page-screenshot.png`,
29+
url: `https://${
30+
process.env.NEXT_PUBLIC_VERCEL_URL as string
31+
}/landing-page-screenshot.png`,
2832
alt: "Developer DAO Academy",
2933
type: "image/png",
3034
},

src/components/PageSeoLayout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ const PageSeoLayout = ({
1919
openGraph={{
2020
type: "website",
2121
locale: "en_US",
22-
url: `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/landing-page-screenshot.png`,
22+
url: `https://${
23+
process.env.NEXT_PUBLIC_VERCEL_URL as string
24+
}/landing-page-screenshot.png`,
2325
site_name: `Developer DAO Academy`,
2426
title: `Developer DAO Academy | ${title}`,
2527
description: description,
2628
images: [
2729
{
28-
url: `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/landing-page-screenshot.png`,
30+
url: `https://${
31+
process.env.NEXT_PUBLIC_VERCEL_URL as string
32+
}/landing-page-screenshot.png`,
2933
alt: "Developer DAO Academy",
3034
type: "image/png",
3135
},

0 commit comments

Comments
 (0)