DEV Community

Discussion on: Complete Guide to Amplify and Next.js

Collapse
 
roblescoulter profile image
Luis Robles

Thank you for this. I just have one question, when I add the getServerSideProps methods and try to upload my changes to Amplify I get the same issue always:

Error occurred prerendering page "/dashboard". Read more: nextjs.org/docs/messages/prerender...
Error: Error for page /dashboard: pages with getServerSideProps can not be exported. See more info here: nextjs.org/docs/messages/gssp-export

This happens on build when the command next build is run. Any clues?