From d2b2a0ba1e4e829e29fc2e48dde4fba713cf75aa Mon Sep 17 00:00:00 2001 From: Ourai Lin Date: Thu, 12 Sep 2024 02:44:34 +0800 Subject: [PATCH] fix: Next.js output type --- .knosys/sites/default/next.config.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.knosys/sites/default/next.config.mjs b/.knosys/sites/default/next.config.mjs index 4678774e6..0299ccade 100644 --- a/.knosys/sites/default/next.config.mjs +++ b/.knosys/sites/default/next.config.mjs @@ -1,4 +1,7 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + output: process.env.NODE_ENV === 'production' ? 'export' : undefined, + reactStrictMode: true, +}; export default nextConfig;