fix(infra): resolve local directus service matching, improve branding script flexibility, and cleanup build artifacts

This commit is contained in:
2026-02-16 18:07:56 +01:00
parent b091175b89
commit bfd3c8164b
13 changed files with 29985 additions and 330 deletions

View File

@@ -46,22 +46,10 @@ export default function Header() {
return segments.join('/');
};
const [productsSlug, setProductsSlug] = useState('products');
useEffect(() => {
// We can't use mapFileSlugToTranslated directly in client components easily without an API or similar
// For now, let's just check the locale
if (currentLocale === 'de') {
setProductsSlug('produkte');
} else {
setProductsSlug('products');
}
}, [currentLocale]);
const menuItems = [
{ label: t('home'), href: '/' },
{ label: t('team'), href: '/team' },
{ label: t('products'), href: `/${productsSlug}` },
{ label: t('products'), href: currentLocale === 'de' ? '/produkte' : '/products' },
{ label: t('blog'), href: '/blog' },
];