You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: You have opted-out of Automatic Static Optimization due to `getInitialProps` in `pages/_app`. This does not opt-out pages with `getStaticProps`
Read more: https://nextjs.org/docs/messages/opt-out-auto-static-optimization
`You have opted-out of Automatic Static Optimization due to \`getInitialProps\` in \`pages/_app\`. This does not opt-out pages with \`getStaticProps\``
I know i use it and i use it because i have to as i need to get settings from api on each call. So i just want to disable this warning. For me, too many warnings during build just hides the relevant warnings.
Describe the solution you'd like
Maybe a setting in next.config.js for all warnings to disable them. Maybe it can also be used to throw an error instead of warning if wanted (if someone wants to):
Describe the feature you'd like to request
A setting to hide following warning:
next.js/packages/next/build/index.ts
Line 1141 in 4a7ab34
I know i use it and i use it because i have to as i need to get settings from api on each call. So i just want to disable this warning. For me, too many warnings during build just hides the relevant warnings.
Describe the solution you'd like
Maybe a setting in
next.config.js
for all warnings to disable them. Maybe it can also be used to throw an error instead of warning if wanted (if someone wants to):Describe alternatives you've considered
it may also be changed using a setting in the
.env
fileThe text was updated successfully, but these errors were encountered: