Hello!
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.
{ "routes": [ { "src": "/api/(.*)", "dest": "/api/main.py" } ]}Project structure
my_repo/├── api/│ ├── __init__.py│ ├── auth.py│ ├── database.py│ ├── db.py│ ├── main.py│ ├── models.py│ ├── settings.py│ ├── test.py│ └── venv/├── app/│ ├── index.html│ ├── package.json│ ├── package-lock.json│ ├── src/│ │ └── index.tsx│ ├── venv/│ └── vite.config.ts├── LICENSE├── README.md├── login_plan.md├── package.json├── requirements.txt├── vercel.json└── venv/Would appreciate any pointers as to what I'm missing, thanks!