Skip to content

Commit

Permalink
fix: broken page refresh 404 #42
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Dec 1, 2020
1 parent 7cde312 commit 6ef44b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ app.use(
)
app.use(cookieParser())

app.use(history({
index: '/'
}))

app.get('/', renderIndex)

app.use('/', express.static(utils.joinPath(false, 'dist')))

app.use(cors())

app.use(history())

function hasProperty (obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop)
}
Expand Down

0 comments on commit 6ef44b7

Please sign in to comment.