Having trouble deploying my application using npm run build
, Vercel, or another service. It works fine locally without showing any errors. I am using Firebase, Next.js, and TypeScript. The issue seems to be related to getStaticProps. When requesting data, it returns undefined even though I have tried multiple solutions. Any help would be greatly appreciated.
Repository: https://github.com/SrAndresF/a
Error:
Collecting page data ...AxiosError: Request failed with status code 404 data: undefined code: 'ERR_BAD_REQUEST'
I have attempted changing headers and troubleshooting a potential pre-rendering error but no success. Deployment on firehosting also failed. Initially thought it was a getStaticPaths issue, but after thorough investigation, it does not seem to be the case. The site utilizes a cookie in an environment variable, which should not be causing problems.
Should I try using Json.stringify or consider opening a Docker container? Thanks for any guidance :)