Hi Bruno,
Hello,
I followed your Next.js Authentication Tutorial and built a project around it.
Everything runs fine on development and ‘npm run build’ builds without issues, but once I ‘npm run start’ and go to the page (localhost:3000) I get an “Internal Server Error” on the DOM and my terminal says “TypeError: Cannot read property ‘passport’ of undefined”.
This is happening on Windows 10 and my Ubuntu 18.04 server.
My project github: GitHub - apardo04/stock-market-react-app: Full Stack Stock Market Portfolio App
Do you have any idea why this could be happening?