有什么方法可以从nextjs的_error.js中的getInitialProps重定向到另一个url ?
已经试过 res.redirect('/'); 在 getInitialProps 里面。
它给 TypeError: res.redirect is not a function
next.js
next.js ×1