Deploying a Flask app with Vercel

Hi, @zaydloya!

Looking at your vercel.json, it looks like the issue may be because:

  • The "src": "/api/(.*)" route is targeting the /api/app.py file, which might not be handling all the routes properly.
  • The "src": "/(.*)" route also targets /api/app.py, which could be causing conflicts.

I’m also sharing an example Flask app for anyone looking at this and wanting to see how deploying a Flask app would look like on Vercel.

1 Like