diff --git a/next.config.mjs b/next.config.mjs index 87fdcc85..9d516ede 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -432,11 +432,19 @@ const nextConfig = { beforeFiles: [ { source: '/:locale/datasheets/:path*', - destination: '/datasheets/:path*', + destination: '/api/datasheets/:path*', }, { - source: '/:locale/brochure/:path*', - destination: '/brochure/:path*', + source: '/:locale/brochures/:path*', + destination: '/api/brochures/:path*', + }, + { + source: '/datasheets/:path*', + destination: '/api/datasheets/:path*', + }, + { + source: '/brochures/:path*', + destination: '/api/brochures/:path*', }, { source: '/de/produkte',