mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
01391e3c13
**Related issue:** - Closes #7984
8 lines
191 B
JavaScript
8 lines
191 B
JavaScript
getInitialProps = (code)=>{
|
|
let statusCode, message;
|
|
return code && (statusCode = code), message = 404 === statusCode ? "404" : "500", {
|
|
statusCode,
|
|
message
|
|
};
|
|
};
|