Skip to content

Commit

Permalink
base path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed Dec 4, 2024
1 parent e4da148 commit f86da03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit f86da03

Please sign in to comment.