mirror of
https://github.com/dzeiocom/markblog.git
synced 2025-06-06 08:09:54 +00:00
Fixed compilation error
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
b2f9e98ec1
commit
d484c3a721
@ -50,7 +50,7 @@ export default class Error extends Component<Props, {}> {
|
||||
)
|
||||
}
|
||||
|
||||
public getInitialProps({ res, err }: NextPageContext) {
|
||||
public static getInitialProps({ res, err }: NextPageContext) {
|
||||
const statusCode = res ? res.statusCode : err ? err.statusCode : 404
|
||||
return { statusCode }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user