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
Based on your example next example,
The example is using getInitialProps,this gets warn.
Warning: You have opted-out of Automatic Prerendering due to `getInitialProps` in `pages/_app`.
Read more: https://err.sh/next.js/opt-out-automatic-prerendering
Is there anyway to comply with the warning?
Thanks,
The text was updated successfully, but these errors were encountered:
This library dynamically detect the user agent when the pages are rendered. It is not possible to pre-render the pages before because there is no way to know what the user-agent of the visiting users will be. So in short: it is not possible to comply with the warning
If you want to pre-render a next.js page you won't be able to use this library on the page.
Prerendering is before knowing what is the loading user agent is. If we render after knowing the user agent then it is not a prerender. One way or another then.
Based on your example next example,
The example is using
getInitialProps
,this gets warn.Is there anyway to comply with the warning?
Thanks,
The text was updated successfully, but these errors were encountered: