fix: resolve html invalid nesting, english routing 404s, and nodemailer missing credentials
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🧪 QA (push) Successful in 3m14s
Build & Deploy / 🏗️ Build (push) Failing after 2m43s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-27 12:55:24 +01:00
parent a5718c5013
commit 62f1e9a89c
4 changed files with 71 additions and 28 deletions

View File

@@ -393,6 +393,7 @@ const nextConfig = {
},
images: {
formats: ['image/webp'],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
remotePatterns: [
{
protocol: 'https',
@@ -402,6 +403,14 @@ const nextConfig = {
protocol: 'https',
hostname: '*.klz-cables.com',
},
{
protocol: 'http',
hostname: 'klz-cables.com',
},
{
protocol: 'http',
hostname: '*.klz-cables.com',
},
{
protocol: 'http',
hostname: 'klz.localhost',
@@ -427,6 +436,31 @@ const nextConfig = {
source: '/de/kontakt',
destination: '/de/contact',
},
// Safety rewrites for English locale using German slugs (legacy or content errors)
{
source: '/en/produkte',
destination: '/en/products',
},
{
source: '/en/produkte/:path*',
destination: '/en/products/:path*',
},
{
source: '/en/kontakt',
destination: '/en/contact',
},
{
source: '/en/impressum',
destination: '/en/legal-notice',
},
{
source: '/en/datenschutz',
destination: '/en/privacy-policy',
},
{
source: '/en/agbs',
destination: '/en/terms',
},
],
afterFiles: [],
fallback: [],