This example shows how to use Flask 2 on Vercel with Serverless Functions using the Python Runtime.
https://div-lengua.vercel.app/
This example uses the Web Server Gateway Interface (WSGI) with Flask to enable handling requests on Vercel with Serverless Functions.
npm i -g vercel
vercel dev
Your Flask application is now available at http://localhost:3000
.
or you can run with flask itself:
export FLASK_DEBUG=1
export FLASK_APP=api/main.py
export FLASK_ENV=development
flask run
port= 5000
Deploy the example using Vercel: