fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

Any way I can use the Router wrapper to push to an error? #43

Closed youfoundron closed 7 years ago

youfoundron commented 7 years ago

I want to push to an error page if the status of a response from a request made in getInitialProps returns 404 or 500.

fridays commented 7 years ago

Looks like you found an answer in https://github.com/zeit/next.js/issues/2218