From 4f464f8bb75adfe79eaa33f994f1c53992e0f045 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Wed, 11 Mar 2026 00:54:27 +0100 Subject: [PATCH] fix(next-config): restore missing datasheet and brochure rewrites and fix naming --- next.config.mjs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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',