1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Register the right path

This commit is contained in:
Tim Neutkens 2018-02-09 21:24:50 +01:00
parent 90db1c2545
commit 856700d576

View file

@ -195,7 +195,7 @@ export class NextScript extends Component {
} }
${page === '_error' && ` ${page === '_error' && `
__NEXT_REGISTER_PAGE('/index', function() { __NEXT_REGISTER_PAGE('${pathname}', function() {
var error = new Error('Page does not exist: ${htmlescape(pathname)}') var error = new Error('Page does not exist: ${htmlescape(pathname)}')
error.statusCode = 404 error.statusCode = 404