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:
parent
90db1c2545
commit
856700d576
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue