Deploy vercel issues
Unanswered
Maртин posted this in #help-forum
MaртинOP
Hello, I have a problem with a small program that has 2 api endpoints and a main screen, on the main screen it shows the number of players broken down into 24 hours in a graph. with the help of prism, all the data is retrieved from a mysql database, and there is /api/updateData, this can be done manually or the cron job would call this api every 5 minutes, a random number is currently generated here as the player number and this is uploaded to the database, also with prism, and a timestamp data next to it. The entire application works normally on localhost, but as soon as I deploy it on Vercel, it retrieves the data at the moment of deployment, but after that it does not want to do anything, the updateData, it does not give an error when I call it, but it does not insert a new row into the database, and the playerData , it always requests the data that was available at the time of deployment, if I manually change the data in the database, nothing changes. I have dusted everything but I can't find where the error is. Can someone help me with this?