fix: resolve layout, pdf datasheets data generation and excel 404 routing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user