From 55148ab3f7603f5fb5cab47c6c2f914aafce50b8 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 24 May 2024 20:04:00 +0530 Subject: [PATCH] fix: redirection to `/god-mode`. (#4587) --- web/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/next.config.js b/web/next.config.js index 1cb49a40d..574d16c17 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -69,6 +69,10 @@ const nextConfig = { const ADMIN_BASE_URL = process.env.NEXT_PUBLIC_ADMIN_BASE_URL || "" const ADMIN_BASE_PATH = process.env.NEXT_PUBLIC_ADMIN_BASE_PATH || "" const GOD_MODE_BASE_URL = ADMIN_BASE_URL + ADMIN_BASE_PATH + rewrites.push({ + source: "/god-mode", + destination: `${GOD_MODE_BASE_URL}/`, + }) rewrites.push({ source: "/god-mode/:path*", destination: `${GOD_MODE_BASE_URL}/:path*`,