API only replies with empty responses in production mode hosted on vercel
Unanswered
Ash-throated Flycatcher posted this in #help-forum
Ash-throated FlycatcherOP
I am working on a web app written in next.js, and I have deployed to Vercel. I'm using Route Handlers in the App directory and I'm reading backend data from a json file. I have run the production build on my local machine and everything works fine, the API responds with the expected data, but when running the build on vercel, the API's response suggests there is no data on the backend. Here is the github repo: https://github.com/mdesignscode/trivia_mania, the hosted url: https://trivia-mania-six.vercel.app/, and a temporary link to the production build running on my machine: https://9415-41-116-218-169.ngrok-free.app/