fix: resolve layout, pdf datasheets data generation and excel 404 routing

This commit is contained in:
2026-03-03 12:38:55 +01:00
parent 34bb91c04b
commit 655f33091f
105 changed files with 1337 additions and 1077 deletions

View File

@@ -25,6 +25,18 @@ const nextConfig = {
},
},
...(isProd ? { output: 'standalone' } : {}),
async rewrites() {
return [
{
source: '/:locale/datasheets/:path*',
destination: '/datasheets/:path*',
},
{
source: '/:locale/brochure/:path*',
destination: '/brochure/:path*',
},
];
},
async headers() {
const isProd = process.env.NODE_ENV === 'production';
const umamiDomain = new URL(process.env.UMAMI_API_ENDPOINT || 'https://analytics.infra.mintel.me').origin;