Skip to content

Commit

Permalink
routing reload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed Dec 2, 2024
1 parent 6a36d4f commit 1cb8c37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ const nextConfig = {
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '', // 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 || '',
async rewrites() {
return [
{
source: '/:path*',
destination: '/',
},
];
},
};

module.exports = nextConfig;

0 comments on commit 1cb8c37

Please sign in to comment.