I’m deploying this NextJS application on Firebase using their CLI firebase deploy --only hosting:sitename
. My project also contains onCall
functions (TypeScript and Python) as well as NoSQL database indexes that I have successfully deployed utilizing both Firebase and Google Cloud CLI solutions. When I open the app, however, it goes into an infinite redirect/reload on its current page.
During these redirects, I saw the following error in my console: Failed to load resource: the server responded with a status of 500 (Internal Server Error)
and shows :sitename/_next/data/:hash/en.json
as corresponding file. On the first reload, I also saw a Error: Failed to load static props - main-:hash.js:1:63396
. I can’t, for the life of me, figure out what’s wrong here or how do I fix it. Building the app locally and running it does not reproduce this error.
I investigated this en.json
file locally. It resides in localhost/_next/:hash/en.json
and contains nested _nextI18Next
objects.
Please help! Thx!