From b537766fd5b058250d3badb2d3a48e9f98fc8a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 19 Nov 2024 00:21:07 +0700 Subject: [PATCH] fix next start failures due to output: export setting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fails with: Error: "next start" does not work with "output: export" configuration. Use "npx serve@latest out" instead. Signed-off-by: Jakub SokoĊ‚owski --- next.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 9381688ff6..9cdb4baa33 100644 --- a/next.config.js +++ b/next.config.js @@ -11,7 +11,10 @@ const withMDX = createMDX({ /** @type {import('next').NextConfig} */ const nextConfig = { - output: 'export', + /* Breaks currently used 'next start' due to: + * Error: "next start" does not work with "output: export" configuration. + * Use "npx serve@latest out" instead. */ + //output: 'export', trailingSlash: true, images: { unoptimized: true,