Skip to content

Commit

Permalink
fix(client): relative paths in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
cgawron committed Sep 15, 2023
1 parent 6a875fb commit 3c9b7c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion client/Google_Calendar_icon_(2020).svg

This file was deleted.

3 changes: 2 additions & 1 deletion client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const theme = createTheme({
const container = document.getElementById("root");
const root = createRoot(container);
const GOOGLE_ID = process.env.REACT_APP_GOOGLE_ID;
const BASE_PATH = process.env.REACT_BASE_PATH || "/meeting";

console.log("base url: %s %s", process.env.REACT_APP_URL, process.env.REACT_BASE_PATH);

Expand All @@ -91,7 +92,7 @@ root.render(
<GoogleOAuthProvider clientId={GOOGLE_ID}>
<LocalizationProvider dateAdapter={AdapterDateFns}>
<ThemeProvider theme={theme}>
<BrowserRouter basename={process.env.REACT_BASE_PATH}>
<BrowserRouter basename={BASE_PATH}>
<Routes>
<Route path="/" element={isAuthenticated() ? (
<Navigate to="/app" />
Expand Down

0 comments on commit 3c9b7c0

Please sign in to comment.