older python version deployment with vercel #160172
-
Discussion TypeProduct Feedback Discussion ContentHello everyone. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Thanks for posting in the GitHub Community, @solunagit! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category, the Discussions category is solely related to conversations around the GitHub product Discussions. This question should be in the |
Beta Was this translation helpful? Give feedback.
-
|
You'll need these specific files in your project root:
Check the Vercel deployment logs in your dashboard What specific error messages are you seeing in the Vercel dashboard? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @solunagit — Vercel doesn’t officially support Python for backend/serverless functions the way it does for Node.js. That’s likely why you're hitting errors, especially with older Python versions like 3.9. ✅ Best options:
Let me know if you want a working Dockerfile example for Python 3.9 + FastAPI. |
Beta Was this translation helpful? Give feedback.
-
|
Hello.
-If deployment still fails, ensure: Good luck solunagit! |
Beta Was this translation helpful? Give feedback.
Hello.
-If deployment still fails, ensure:
1. All three files (api/index.py, vercel.json, requirements.txt) are in the repo root and committed.
2. Your api/index.py really references app (FastAPI instance) or handler (Mangum handler).
-Vercel's Python support is “beta”: issues may persist. If you face unresolved errors, consider using a Docker-based custom deploy or moving to platforms like Render, Fly.io, or Railway
Good luck solunagit!