From f86da03d3bad9acda96bf0e7b80c9348b167d3f9 Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Wed, 4 Dec 2024 15:11:35 +0530 Subject: [PATCH] base path fix --- next.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 7bf596d..30b372c 100644 --- a/next.config.js +++ b/next.config.js @@ -7,9 +7,9 @@ const nextConfig = { buildActivity: false, }, // Access the NEXT_PUBLIC_BASE_PATH environment variable - basePath: process.env.NEXT_PUBLIC_BASE_PATH || '', // Default to empty if not defined + basePath: process.env.NEXT_PUBLIC_BASE_PATH || undefined, // Default to empty if not defined // You can also use assetPrefix to set the base path for static assets - assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || '', + assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || undefined, }; module.exports = nextConfig;