Having trouble deploying Flask App on vercel

I keep getting 404: Not Found Error when I deploy my flask app. Please Help me

This is the Error


This is my file structure

This is my vercel.json
{
“version”: 2,
“builds”: [
{
“src”: “main.py”,
“use”: “@vercel/python”
}
],
“routes”: [
{
“src”: “/(.*)”,
“dest”: “main.py”
}
]
}

Deployment URL or Custom Domain:
Environment (local, preview, production):
Project Framework:
Build Settings:
  Framework Preset:
  Build Command (if not default):
  Output Directory (if not default):
  Install Command (if not default):
Node/Runtime Version:
Package Manager:
Relevant Packages:

Hi, @ahmes134! Welcome to the Vercel Community!

I recommend checking out our Community post on how to debug these 404 errors.

In case this is helpful, we also have a couple of Flask app discussions in the forum, such as:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.