From 984799d5023f03f1c56bb75fc08f3ade1ff3009c Mon Sep 17 00:00:00 2001 From: SrJuggernaut Date: Fri, 12 Jan 2024 11:09:02 -0600 Subject: [PATCH] feat: metadataBase --- .env.example | 6 +++++- src/app/layout.tsx | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 6e0fd0d..0d5a2cd 100644 --- a/.env.example +++ b/.env.example @@ -23,4 +23,8 @@ APPWRITE_API_KEY="" # Prisma required variables -DATABASE_URL="" \ No newline at end of file +DATABASE_URL="" + +# Website Variables + +NEXT_PUBLIC_SITE_URL="https://entgamers.com" \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8d328f5..22e9110 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -18,7 +18,8 @@ config.autoAddCss = false export const metadata: Metadata = { title: 'Home | EntGamers', - description: 'Una comunidad de jugadores, para jugadores' + description: 'Una comunidad de jugadores, para jugadores', + metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL ?? 'https://entgamers.pro') } interface RootLayoutProps {