diff --git a/next.config.mjs b/next.config.mjs index 2953d2ba..d5cfbe25 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -415,20 +415,24 @@ const nextConfig = { ], }, async rewrites() { - return [ - { - source: '/de/produkte', - destination: '/de/products', - }, - { - source: '/de/produkte/:path*', - destination: '/de/products/:path*', - }, - { - source: '/de/kontakt', - destination: '/de/contact', - }, - ]; + return { + beforeFiles: [ + { + source: '/de/produkte', + destination: '/de/products', + }, + { + source: '/de/produkte/:path*', + destination: '/de/products/:path*', + }, + { + source: '/de/kontakt', + destination: '/de/contact', + }, + ], + afterFiles: [], + fallback: [], + }; }, };