Use homepage as basename for browser router

Change-Id: I8eafcdd25224437c1110bb0583b412d60e21d292
This commit is contained in:
Guillaume Vincent 2019-01-09 09:45:09 +01:00
parent 29041ab473
commit 7bae0ba80a
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"name": "ara-web",
"version": "1.0.0",
"private": true,
"homepage": "./",
"homepage": "http://localhost:3000/",
"dependencies": {
"@patternfly/patternfly-next": "1.0.105",
"axios": "^0.18.0",

View File

@ -21,7 +21,7 @@ class App extends Component {
if (isLoading) return null;
return (
<Provider store={store}>
<BrowserRouter>
<BrowserRouter basename={process.env.PUBLIC_URL}>
<Switch>
<Redirect from="/" exact to="/playbooks" />
<Route