mirror of
https://github.com/dzeiocom/markblog.git
synced 2025-06-19 22:19:19 +00:00
Fixed compilation error
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -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 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user