Skip to content

Commit baac3b6

Browse files
committed
Added page not found if asset isn't found where expected
1 parent 04fb063 commit baac3b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ module.exports = (http) => {
116116
this.renderAsset(assetType, file, assetType, res);
117117
}
118118
}
119+
120+
this.pageNotFound(res, rawUrl);
119121
}
120122
else {
121123
if (routes.indexOf(urlPathname) !== -1) { // If the url is for a page route

0 commit comments

Comments
 (0)