trying to deploy web2py on vercel, but no succeed, any hints ? *steps* npm i vercel wget -c http://web2py.com/examples/static/web2py_src.zip unzip -o web2py_src.zip cd web2py cat << EOF > requirements.txt EOF
*with web2py.py* cat << EOF > vercel.json { "version": 0, "builds": [ { "src": "*.py", "use": "@vercel/python" } ], "routes": [ { "src": "(.*)", "dest": "web2py.py" } ] } EOF ../node_modules/.bin/vercel dev *result* > Built @vercel/python:web2py.py [23s] Missing variable `handler` or `app` in file "web2py.py". See the docs https://vercel.com/docs/runtimes#advanced-usage/advanced-python-usage TypeError: Object prototype may only be an Object or null: undefined at Function.setPrototypeOf (<anonymous>) at new LambdaError (/Users/sugizo/Downloads/learn/node_modules/vercel/dist/index.js:10913:16) at Lambda.<anonymous> (/Users/sugizo/Downloads/learn/node_modules/vercel/dist/index.js:11033:27) at Generator.next (<anonymous>) at fulfilled (/Users/sugizo/Downloads/learn/node_modules/vercel/dist/index.js:10941:58) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) *with anyserver.py* cat << EOF > vercel.json { "version": 0, "builds": [ { "src": "*.py", "use": "@vercel/python" } ], "routes": [ { "src": "(.*)", "dest": "anyserver.py" } ] } EOF ../node_modules/.bin/vercel dev *result* > Built @vercel/python:anyserver.py [11s] Missing variable `handler` or `app` in file "anyserver.py". See the docs https://vercel.com/docs/runtimes#advanced-usage/advanced-python-usage TypeError: Object prototype may only be an Object or null: undefined at Function.setPrototypeOf (<anonymous>) at new LambdaError (/Users/sugizo/Downloads/learn/node_modules/vercel/dist/index.js:10913:16) at Lambda.<anonymous> (/Users/sugizo/Downloads/learn/node_modules/vercel/dist/index.js:11033:27) at Generator.next (<anonymous>) at fulfilled (/Users/sugizo/Downloads/learn/node_modules/vercel/dist/index.js:10941:58) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/d66c0ebb-0b50-431e-86af-ae5a76502a6en%40googlegroups.com.