Solution
{ "version": 2, "builds": [ { "src": "./index.py", "use": "@vercel/python" } ], "routes": [ { "src": "/(.*)", "dest": "index.py" } ] }
Update as of 1/1/2022
I used a vercel.json file with:
{ "version": 2, "builds": [ { "src": "index.py", "use": "@vercel/python" } ], "routes": [ { "src": "/(.*)", "dest": "index.py" } ] }
Changing the src from ./index.py to index.py got rid of an error message:
WARN! You defined 1 build that did not match any source files (please ensure they are NOT defined in .vercelignore):
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Solution
Update as of 1/1/2022
I used a vercel.json file with:
Changing the src from ./index.py to index.py got rid of an error message: