Replies: 2 comments
-
I don't think it's currently possible to run Flet on lambda-like backends as they are 1) stateless and 2) don't support WebSockets. However, in the future we might add another "lambda" backend that works like send request from the browser -> dehydrate page state in lambda -> process event -> send page update delta -> hydrate state. Python runtime for reference: https://vercel.com/docs/functions/serverless-functions/runtimes/python |
Beta Was this translation helpful? Give feedback.
0 replies
-
Alternatively, you can publish entire Flet app as a static website and use Vercel edge functions as a backend. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I tried flet-fastapi and created a sample app. It works fine locally, but when I deploy it on Vercel as a serverless function, it gives me an error. below are the files I am using for deployment.
directory structure
api/index.py
requirements.txt
vercel.json
the error
Beta Was this translation helpful? Give feedback.
All reactions