Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔍️ Update metadata titles (#1520)
Luke Vella4907576a3e17
diff --git a/apps/web/src/app/[locale]/(auth)/layout.tsx b/apps/web/src/app/[locale]/(auth)/layout.tsxindex 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({</div>);}--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.tsxindex 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({</html>);}++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.tsxindex 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() {</div>);}++export async function generateMetadata() {+ const { t } = await getTranslation();+ return {+ title: t("quickCreate"),+ };+}