Skip to content

Commit

Permalink
add login for dev env only
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-jnk committed Feb 5, 2024
1 parent 439b190 commit c4dafb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Routes, Route } from 'react-router-dom'
export default function App() {
return (
<Routes>
<Route path='/login' element={<Login />} />
{import.meta.env.NODE_ENV !== 'production' && <Route path='/login' element={<Login />} />}
<Route element={<ProtectedRoute />}>
{/* Possibly setup passable props to ProtectedRoute so we can add authorization too,
example: <ProtectedRoute roles={['managers', 'data-admins']} />
Expand Down

0 comments on commit c4dafb3

Please sign in to comment.