diff --git a/apps/web/src/app/[locale]/(auth)/layout.tsx b/apps/web/src/app/[locale]/(auth)/layout.tsx index 00810448e..eca89a936 100644 --- a/apps/web/src/app/[locale]/(auth)/layout.tsx +++ b/apps/web/src/app/[locale]/(auth)/layout.tsx @@ -1,6 +1,5 @@ import { cn } from "@rallly/ui"; import { DotPattern } from "@rallly/ui/dot-pattern"; -import type { Metadata } from "next"; import { Logo } from "@/components/logo"; import { @@ -48,10 +47,3 @@ export default async function Layout({ ); } - -export const metadata: Metadata = { - title: { - template: "%s - Rallly", - default: "Rallly", - }, -}; diff --git a/apps/web/src/app/[locale]/layout.tsx b/apps/web/src/app/[locale]/layout.tsx index 08b0e7d42..e33e6ddac 100644 --- a/apps/web/src/app/[locale]/layout.tsx +++ b/apps/web/src/app/[locale]/layout.tsx @@ -2,7 +2,7 @@ import "tailwindcss/tailwind.css"; import "../../style.css"; import { Toaster } from "@rallly/ui/toaster"; -import type { Viewport } from "next"; +import type { Metadata, Viewport } from "next"; import { Inter } from "next/font/google"; import React from "react"; @@ -46,3 +46,10 @@ export default async function Root({ ); } + +export const metadata: Metadata = { + title: { + template: "%s | Rallly", + default: "Rallly", + }, +}; diff --git a/apps/web/src/app/[locale]/quick-create/page.tsx b/apps/web/src/app/[locale]/quick-create/page.tsx index f0ede63c5..a7e58a33d 100644 --- a/apps/web/src/app/[locale]/quick-create/page.tsx +++ b/apps/web/src/app/[locale]/quick-create/page.tsx @@ -40,3 +40,10 @@ export default async function QuickCreatePage() { ); } + +export async function generateMetadata() { + const { t } = await getTranslation(); + return { + title: t("quickCreate"), + }; +}