Skip to content

Commit

Permalink
fix: add PUBLIC_URL to browser router
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed May 13, 2021
1 parent c874eaf commit 31626f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/front/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Search from './views/Search'
const App: FC = () => {
return (
<FlightsProvider>
<BrowserRouter>
<BrowserRouter basename={process.env.PUBLIC_URL}>
<Switch>
<Route exact path={'/'} component={Home} />
<Route exact path={'/search'} component={Search} />
Expand Down

0 comments on commit 31626f3

Please sign in to comment.