_document getinitialprops req é indefinido
Accessing getInitialProps req & res in next js custom _document:
Add this to index.js :
export async function getServerSideProps() {
const data = "myData";
return { props: { data } };
}
Then It's gonna working...
Have Fun ;)
s1rbl4ck