From 78a37fba647a3053b0718b8799c1414dac54c7cd Mon Sep 17 00:00:00 2001 From: yznahmad Date: Fri, 20 Jun 2025 03:20:11 +0300 Subject: [PATCH] Remove exportPathMap for App Router compatibility --- webapp/next.config.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/webapp/next.config.js b/webapp/next.config.js index c593871..357c3ce 100644 --- a/webapp/next.config.js +++ b/webapp/next.config.js @@ -11,14 +11,8 @@ const nextConfig = { // to prevent database connection attempts serverComponentsExternalPackages: ['mongoose'], }, - // Disable server-side rendering during build for specific pages that require DB access - // This prevents connection attempts during build - exportPathMap: async function() { - return { - '/': { page: '/dashboard' }, - // Add other static pages here - }; - }, + // For App Router, use generateStaticParams in your page components + // instead of exportPathMap async redirects() { return [ { // we redirect '/' to '/dashboard