I am trying to deploy an app with a React frontend and Python/FastApi backend. I have a vercel.json config file to point all requests to /api/* to main.py, but am consistently getting 404s trying to hit the API.
Thank you @jacobparis - I’ve tried a couple iterations and am still missing something. Is the destination syntax for the python app correct or it is only supposed to reflect an http URL?
This looks correct, I checked out your codebase (since it’s a public repo) and the issue looks like your VITE_API_URL environment variable. If I replace that with a hardcoded /api then the routes map to /api/scary which correctly hits the python function
They currently have a fallback to http://locahost:8000 which does not end up invoking the /apiroutes
Notably I do get a 500 error after that but atm I am assuming that’s because I don’t have any of the other integrations set up or running