From d91feb8de4460c8bd905d17908517b6d74a365ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Thu, 23 Jan 2025 13:16:20 +0100 Subject: [PATCH] fix: use Plausible --- apps/website/app/[locale]/layout.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/website/app/[locale]/layout.tsx b/apps/website/app/[locale]/layout.tsx index 81cc421..548c38a 100644 --- a/apps/website/app/[locale]/layout.tsx +++ b/apps/website/app/[locale]/layout.tsx @@ -9,6 +9,9 @@ import { getTranslations, setRequestLocale, } from "next-intl/server" +import Script from "next/script" + +const DOMAIN = "theoludwig.fr" export const generateMetadata = async ({ params, @@ -18,7 +21,7 @@ export const generateMetadata = async ({ const title = t("meta.title") const description = `${title} - ${t("meta.description")}` const image = "/images/logo.webp" - const url = new URL("https://theoludwig.fr") + const url = new URL(`https://${DOMAIN}`) const locales = LOCALES.join(", ") return { @@ -74,6 +77,12 @@ const LocaleLayout: React.FC = async (props) => { {children} + +