在某些情况下如果需要跳转404,在 getServerSideProps 方法内返回 notFound:true
123
return { notFound:true}
如果要重写404页面,可以在pages下新建一个404.js进行改写