vercel gives errors when generating nextjs static pages I didn't ask to be generated during deploy

hello. I'm getting the following error:
2022-10-23T06:06:28.411Z Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
2022-10-23T06:06:28.411Z [object Promise]
2022-10-23T06:06:28.412Z info - Generating static pages (3/3)
2022-10-23T06:06:28.413Z
2022-10-23T06:06:28.413Z > Build error occurred
2022-10-23T06:06:28.416Z Error: Export encountered errors on following paths:
2022-10-23T06:06:28.411Z Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
2022-10-23T06:06:28.411Z [object Promise]
2022-10-23T06:06:28.412Z info - Generating static pages (3/3)
2022-10-23T06:06:28.413Z
2022-10-23T06:06:28.413Z > Build error occurred
2022-10-23T06:06:28.416Z Error: Export encountered errors on following paths:
but I don't have a getStaticProps nor getStaticPaths nor getInitialProps in any of my pages or components. I don't have getServerSideProps either so everything should be CSR. The error only happens because it tries to fetching data from an API that's part of the project that is being deployed. But again, this should not happen since I'm only interested in CSR. Please help fix this.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server