feat: subpath support using reverse proxy (#2174)

This commit is contained in:
NaccOll
2022-07-20 10:32:20 +08:00
committed by GitHub
parent 1c58a543b6
commit c71f084531

View File

@@ -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 (
<BrowserRouter>
<BrowserRouter basename={baseUrl}>
<Routes>
<Route
path="/oauth_callback"