fix: redirection to /god-mode. (#4587)

This commit is contained in:
Prateek Shourya 2024-05-24 20:04:00 +05:30 committed by GitHub
parent f0ece1c6b7
commit 55148ab3f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,10 @@ const nextConfig = {
const ADMIN_BASE_URL = process.env.NEXT_PUBLIC_ADMIN_BASE_URL || "" const ADMIN_BASE_URL = process.env.NEXT_PUBLIC_ADMIN_BASE_URL || ""
const ADMIN_BASE_PATH = process.env.NEXT_PUBLIC_ADMIN_BASE_PATH || "" const ADMIN_BASE_PATH = process.env.NEXT_PUBLIC_ADMIN_BASE_PATH || ""
const GOD_MODE_BASE_URL = ADMIN_BASE_URL + 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({ rewrites.push({
source: "/god-mode/:path*", source: "/god-mode/:path*",
destination: `${GOD_MODE_BASE_URL}/:path*`, destination: `${GOD_MODE_BASE_URL}/:path*`,