Relative Content

Tag Archive for next.jsgoogle-cloud-firestorevercel

Next.js 14 API using Firebase Admin returns same data after deployment to Vercel

I have developed an API in Next.js 14 where I use Firebase Admin to fetch values from Firestore. When running locally, the API retrieves fresh data as expected. However, after deploying to Vercel, the API always returns the same values and does not seem to fetch the latest data from Firestore. It behaves as if the response is static.