Next.js: Warn when getInitialProps returns an empty object

Created on 13 Aug 2019  路  1Comment  路  Source: vercel/next.js

We can probably do better by warning for static export opt-out when an empty object is returned from getInitialProps.

Most helpful comment

@Timer

Is redirecting in getInitialProps still a valid tip?

https://github.com/zeit/next.js/wiki/Redirecting-in-%60getInitialProps%60

>All comments

@Timer

Is redirecting in getInitialProps still a valid tip?

https://github.com/zeit/next.js/wiki/Redirecting-in-%60getInitialProps%60

Was this page helpful?
0 / 5 - 0 ratings