Skip to content

Commit

Permalink
fix: set basename
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi committed Dec 12, 2023
1 parent f84c7a2 commit af17b0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import { LoginPage } from './components/Pages/LoginPage'
import 'decentraland-ui/dist/themes/alternative/dark-theme.css'
import './index.css'

const basename = /^decentraland.(zone|org|today)$/.test(window.location.host) ? '/auth' : '/'

ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<BrowserRouter basename={basename}>
<Routes>
<Route path="/login" element={<LoginPage />} />
<Route path="/callback" element={<CallbackPage />} />
Expand Down

0 comments on commit af17b0d

Please sign in to comment.