Why are the json data I request is coming as html?

141 Views Asked by At

I'm working on a small vue project. The data is in json files within the backend folder. I deployed api to heroku. Data is coming in properly and I can print when working in Local; but when I deploy it to vercel, a structure like in the project's index.html file returns and therefore an error occurs. How can I fix this?

in localhost

after deployment

0

There are 0 best solutions below