fix(seo): remove process.env.CI override for baseUrl to prevent etib.localhost leaking into prod canonicals
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 30s
Build & Deploy / 🧪 QA (push) Successful in 1m32s
Build & Deploy / 🏗️ Build (push) Successful in 2m57s
Build & Deploy / 🚀 Deploy (push) Successful in 35s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m4s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-06-24 12:13:28 +02:00
parent 343b484c6e
commit a52c35a224
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,8 @@ export async function generateMetadata(props: {
const params = await props.params; const params = await props.params;
const { locale } = params; const { locale } = params;
const baseUrl = process.env.CI ? 'http://etib.localhost' : SITE_URL; const baseUrl = SITE_URL;
return { return {
title: { title: {
template: '%s | E-TIB', template: '%s | E-TIB',

View File

@@ -1,7 +1,6 @@
import { config } from './config'; import { config } from './config';
const getSiteUrl = () => { const getSiteUrl = () => {
if (process.env.CI) return 'http://etib.localhost';
return (config.baseUrl as string) || 'https://e-tib.com'; return (config.baseUrl as string) || 'https://e-tib.com';
}; };

View File

@@ -138,7 +138,7 @@
"prepare": "husky", "prepare": "husky",
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm"
}, },
"version": "2.2.46", "version": "2.2.47",
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
"@parcel/watcher", "@parcel/watcher",