Merge branch 'feature/excel' into feature-ai-search, resolve conflicts
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Successful in 1m28s
Build & Deploy / 🏗️ Build (push) Successful in 4m11s
Build & Deploy / 🚀 Deploy (push) Successful in 45s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 4m2s
Build & Deploy / 🔔 Notify (push) Successful in 2s
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Successful in 1m28s
Build & Deploy / 🏗️ Build (push) Successful in 4m11s
Build & Deploy / 🚀 Deploy (push) Successful in 45s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 4m2s
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -28,6 +28,9 @@ const nextConfig = {
|
||||
workerThreads: false,
|
||||
memoryBasedWorkersCount: true,
|
||||
},
|
||||
serverActions: {
|
||||
allowedOrigins: ["*.klz-cables.com", "*.branch.klz-cables.com", "localhost:3000", "klz.localhost"],
|
||||
},
|
||||
reactStrictMode: false,
|
||||
productionBrowserSourceMaps: false,
|
||||
logging: {
|
||||
@@ -51,6 +54,7 @@ const nextConfig = {
|
||||
}
|
||||
return config;
|
||||
},
|
||||
// Rewrites moved to bottom merged function
|
||||
async headers() {
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
const umamiDomain = new URL(process.env.UMAMI_API_ENDPOINT || 'https://analytics.infra.mintel.me').origin;
|
||||
@@ -105,7 +109,7 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
key: 'Strict-Transport-Security',
|
||||
value: 'max-age=63072000; includeSubDomains; preload',
|
||||
value: isProd ? 'max-age=63072000; includeSubDomains; preload' : 'max-age=0',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -452,6 +456,22 @@ const nextConfig = {
|
||||
async rewrites() {
|
||||
return {
|
||||
beforeFiles: [
|
||||
{
|
||||
source: '/:locale/datasheets/:path*',
|
||||
destination: '/api/datasheets/: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',
|
||||
destination: '/de/products',
|
||||
|
||||
Reference in New Issue
Block a user