Skip to content

Commit

Permalink
Merge pull request #370 from hackforla/gh-pages-fix
Browse files Browse the repository at this point in the history
history fix for gh-pages
  • Loading branch information
jmensch1 authored Feb 10, 2021
2 parents 935f739 + 05418da commit 9d189b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web",
"version": "0.1.0",
"homepage": "https://hackforla.github.io/ballotnav",
"homepage": "https://hackforla.github.io/ballotnav/",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.32",
Expand Down
2 changes: 1 addition & 1 deletion client/web/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const useStyles = makeStyles({
const App = () => {
const classes = useStyles()
return (
<ConnectedRouter history={history}>
<ConnectedRouter basename={process.env.PUBLIC_URL} history={history}>
<Div100vh className={classes.root}>
<Header />
<div className={classes.content}>
Expand Down
7 changes: 5 additions & 2 deletions client/web/src/services/history.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { createBrowserHistory } from 'history'
import {
// createBrowserHistory as createHistory, // for regular deploy
createHashHistory as createHistory, // for gh-pages deploy
} from 'history'

const history = createBrowserHistory()
const history = createHistory()

export default history

0 comments on commit 9d189b4

Please sign in to comment.