From 70ad2e3041199c7181a7e47f017632fde9ddb84e Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 12 Mar 2026 12:52:51 +0100 Subject: [PATCH] fix(build): remove swcMinify and fix staleTimes/serverActions config object to pass Next.js validation --- next.config.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index a2cbbfcb..4d98447e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -14,14 +14,16 @@ const nextConfig = { experimental: { staleTimes: { dynamic: 0, - static: 0, + static: 30, }, optimizePackageImports: ['lucide-react', 'framer-motion', '@/components/ui'], cpus: 3, workerThreads: false, + serverActions: { + allowedOrigins: ["*.klz-cables.com", "*.branch.klz-cables.com", "localhost:3000", "klz.localhost"], + }, }, reactStrictMode: false, - swcMinify: true, productionBrowserSourceMaps: false, logging: { fetches: {