From 5376b939d5375f4add3e7151c9a4009d54019c0f Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 12 Mar 2026 12:44:42 +0100 Subject: [PATCH] fix(cache): disable client router cache and fix terms routing --- messages/de.json | 4 ++-- messages/en.json | 4 ++-- next.config.mjs | 8 ++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/messages/de.json b/messages/de.json index 29436f2b..3a65c9e8 100644 --- a/messages/de.json +++ b/messages/de.json @@ -3,7 +3,7 @@ "pages": { "impressum": "impressum", "datenschutz": "datenschutz", - "agbs": "agbs", + "agbs": "terms", "kontakt": "contact", "team": "team", "blog": "blog", @@ -74,7 +74,7 @@ "privacyPolicy": "Datenschutz", "privacyPolicySlug": "datenschutz", "terms": "AGB", - "termsSlug": "agbs", + "termsSlug": "terms", "products": "Produkte", "lowVoltage": "Niederspannungskabel", "mediumVoltage": "Mittelspannungskabel", diff --git a/messages/en.json b/messages/en.json index a6a7e78f..4344f642 100644 --- a/messages/en.json +++ b/messages/en.json @@ -3,7 +3,7 @@ "pages": { "legal-notice": "impressum", "privacy-policy": "datenschutz", - "terms": "agbs", + "terms": "terms", "contact": "contact", "team": "team", "blog": "blog", @@ -396,4 +396,4 @@ "cta": "Back to Safety" } } -} \ No newline at end of file +} diff --git a/next.config.mjs b/next.config.mjs index 103c4165..a2cbbfcb 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -12,6 +12,10 @@ const nextConfig = { maxInactiveAge: 60 * 1000, }, experimental: { + staleTimes: { + dynamic: 0, + static: 0, + }, optimizePackageImports: ['lucide-react', 'framer-motion', '@/components/ui'], cpus: 3, workerThreads: false, @@ -437,6 +441,10 @@ const nextConfig = { source: '/de/kontakt', destination: '/de/contact', }, + { + source: '/de/agbs', + destination: '/de/terms', + }, // Safety rewrites for English locale using German slugs (legacy or content errors) { source: '/en/produkte',