Skip to content

Commit

Permalink
Make SPAs work again (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesKyburz authored and leo committed Jun 2, 2017
1 parent dc94a0f commit ade5a14
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 && related.indexOf(current) !== 0) {
if (!assetRequest && flags.single === undefined && related.indexOf(current) !== 0) {
return micro.send(res, 404, notFoundResponse)
}

Expand Down

0 comments on commit ade5a14

Please sign in to comment.