From c71f0845318d59a45a0e37280d5395c631f26e0f Mon Sep 17 00:00:00 2001 From: NaccOll Date: Wed, 20 Jul 2022 10:32:20 +0800 Subject: [PATCH] feat: subpath support using reverse proxy (#2174) --- portal-ui/src/MainRouter.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portal-ui/src/MainRouter.tsx b/portal-ui/src/MainRouter.tsx index b55e22e9e..be119f045 100644 --- a/portal-ui/src/MainRouter.tsx +++ b/portal-ui/src/MainRouter.tsx @@ -19,6 +19,7 @@ import { BrowserRouter, Route, Routes } from "react-router-dom"; import ProtectedRoute from "./ProtectedRoutes"; import LoadingComponent from "./common/LoadingComponent"; import AppConsole from "./screens/Console/ConsoleKBar"; +import { baseUrl } from "./history"; const Login = React.lazy(() => import("./screens/LoginPage/LoginPage")); const LoginCallback = React.lazy( @@ -27,7 +28,7 @@ const LoginCallback = React.lazy( const MainRouter = () => { return ( - +