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

Related issues

arunoda picture arunoda  路  103Comments

robinvdvleuten picture robinvdvleuten  路  74Comments

Timer picture Timer  路  87Comments

tomaswitek picture tomaswitek  路  73Comments

Vista1nik picture Vista1nik  路  55Comments