From 1cb8c3711a73bf69f83b365142843e669fb82cff Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Mon, 2 Dec 2024 21:17:35 +0530 Subject: [PATCH] routing reload fix --- next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/next.config.js b/next.config.js index b455ec6..02dc526 100644 --- a/next.config.js +++ b/next.config.js @@ -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;