From 20e739a58c21fc00b125299f45f985b7fc0b5235 Mon Sep 17 00:00:00 2001 From: carrycooldude Date: Sat, 29 Jul 2023 18:33:55 +0530 Subject: [PATCH] The error you are getting is due to the next export command. The next export command does not work with the App Router. If you are using the App Router in your Next.js project, you will need to disable it before running the next export command. --- next.config.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 767719f..e9d948e 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,11 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} -module.exports = nextConfig +const nextConfig = { + experimental: { + images: false, + }, + output: "export", + router: false, +}; + +module.exports = nextConfig; \ No newline at end of file