Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

oops seo

bautistaaa721ba8962dfb
diff --git a/apps/aot/src/app/layout.tsx b/apps/aot/src/app/layout.tsx
index 64d38012..afbdaf96 100644
--- a/apps/aot/src/app/layout.tsx
+++ b/apps/aot/src/app/layout.tsx
@@ -1,19 +1,19 @@
import './globals.css';
-import { Analytics } from '@vercel/analytics/react';
import { Toaster } from '@repo/ui/components/toaster';
-import type { Metadata } from 'next';
+import { Analytics } from '@vercel/analytics/react';
import { Inter } from 'next/font/google';
import { Navigation } from '~/components/navigation';
import { Providers } from './providers';
+import { buildMetaForEventPage } from '~/utils/metadata';
const inter = Inter({
subsets: ['latin'],
});
-export const metadata: Metadata = {
- title: 'Advent of TypeScript',
-};
+export function generateMetadata() {
+ return buildMetaForEventPage();
+}
export default function RootLayout({
children,
diff --git a/apps/aot/src/utils/metadata.ts b/apps/aot/src/utils/metadata.ts
index 8ecc3d69..8f1f7e52 100644
--- a/apps/aot/src/utils/metadata.ts
+++ b/apps/aot/src/utils/metadata.ts
@@ -14,7 +14,8 @@ export const baseMetadata: Metadata = {
index: true,
follow: true,
},
- description: tagline,
+ description:
+ 'Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the TypeScript community',
openGraph: {
title: 'Advent of TypeScript',
images: [