diff --git a/app/head.tsx b/app/head.tsx
index 1fed8c2..8c088b2 100644
--- a/app/head.tsx
+++ b/app/head.tsx
@@ -8,9 +8,12 @@ export default function Head() {
name="description"
content="An open source application built using the new router, server components and everything new in Next.js 13."
/>
+
+
+
diff --git a/components/docs/mdx-head.tsx b/components/docs/mdx-head.tsx
index 6801b24..99c1982 100644
--- a/components/docs/mdx-head.tsx
+++ b/components/docs/mdx-head.tsx
@@ -21,7 +21,7 @@ export default function MdxHead({ params, og }: MdxHeadProps) {
const url = process.env.NEXT_PUBLIC_APP_URL
let ogUrl = new URL(`${url}/og.jpg`)
- if (og.type) {
+ if (og?.type) {
ogUrl = new URL(`${url}/api/og`)
ogUrl.searchParams.set("heading", og.heading || mdxDoc.title)
ogUrl.searchParams.set("type", og.type)