fix(routing): resolve 404 on German product pages via rewrites and localized links
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 18s
Build & Deploy / 🧪 QA (push) Successful in 3m7s
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has started running

This commit is contained in:
2026-02-23 12:36:37 +01:00
parent 50fc8a0554
commit 5e48c75a83
3 changed files with 25 additions and 15 deletions

View File

@@ -344,6 +344,14 @@ const nextConfig = {
}
return [
{
source: '/de/produkte',
destination: '/de/products',
},
{
source: '/de/produkte/:path*',
destination: '/de/products/:path*',
},
{
source: '/cms/:path*',
destination: `${directusUrl}/:path*`,