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
Having getInitialProps in the custom Appdisables static page optimisation for all pages, if I understand. We use this method only to add a custom header.
This is possible to do adding custom headers() function to the next.config.js. The function adds HTTP headers to the URL. It's also possible to have custom headers per page.
Having
getInitialProps
in the customApp
disables static page optimisation for all pages, if I understand. We use this method only to add a custom header.This is possible to do adding custom
headers()
function to thenext.config.js
. The function adds HTTP headers to the URL. It's also possible to have custom headers per page.This could be related to #310
The text was updated successfully, but these errors were encountered: