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
getServerSideProps
This happens on build when the command next build is run. Any clues?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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-exportThis happens on build when the command next build is run. Any clues?