Skip to content

Commit

Permalink
fix: Pass basename to BrowserRouter - Fixes #2769 (#2778)
Browse files Browse the repository at this point in the history
Fix build when PUBLIC_URL is defined

Co-authored-by: Pierre Duquesne <[email protected]>
  • Loading branch information
stackp and Pierre Duquesne authored May 6, 2022
1 parent 7f0ad6f commit 2d8ae89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/viewer/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function App({ config, defaultExtensions, defaultModes }) {

return (
<CombinedProviders>
<BrowserRouter>
<BrowserRouter basename={routerBasename}>
{authRoutes}
{appRoutes}
</BrowserRouter>
Expand Down

0 comments on commit 2d8ae89

Please sign in to comment.