From a52c35a224e7ea28a7b4b5c57f3279526aa60cda Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Wed, 24 Jun 2026 12:13:28 +0200 Subject: [PATCH] fix(seo): remove process.env.CI override for baseUrl to prevent etib.localhost leaking into prod canonicals --- app/[locale]/layout.tsx | 3 ++- lib/schema.ts | 1 - package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 86f2e9565..3f81983d0 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -32,7 +32,8 @@ export async function generateMetadata(props: { const params = await props.params; const { locale } = params; - const baseUrl = process.env.CI ? 'http://etib.localhost' : SITE_URL; + const baseUrl = SITE_URL; + return { title: { template: '%s | E-TIB', diff --git a/lib/schema.ts b/lib/schema.ts index 1b4b728ad..f0f7dc8f1 100644 --- a/lib/schema.ts +++ b/lib/schema.ts @@ -1,7 +1,6 @@ import { config } from './config'; const getSiteUrl = () => { - if (process.env.CI) return 'http://etib.localhost'; return (config.baseUrl as string) || 'https://e-tib.com'; }; diff --git a/package.json b/package.json index fd7ab33af..3ffc7378f 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "prepare": "husky", "preinstall": "npx only-allow pnpm" }, - "version": "2.2.46", + "version": "2.2.47", "pnpm": { "onlyBuiltDependencies": [ "@parcel/watcher",