Skip to content

Commit

Permalink
Revert "Make SPAs work again (#210)"
Browse files Browse the repository at this point in the history
This reverts commit ade5a14.
  • Loading branch information
leo committed Jun 7, 2017
1 parent 7658782 commit 627bb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = coroutine(function*(req, res, flags, current, ignoredFiles) {
notFoundResponse = yield fs.readFile(custom404Path, 'utf-8')
} catch (err) {}

if (!assetRequest && flags.single === undefined && related.indexOf(current) !== 0) {
if (!assetRequest && related.indexOf(current) !== 0) {
return micro.send(res, 404, notFoundResponse)
}

Expand Down

0 comments on commit 627bb2d

Please sign in to comment.