After you’ve successfully set up and tested your Chainlit application locally, the next step is to make it accessible to a wider audience by deploying it to a hosting service. This guide provides various options for self-hosting your Chainlit app, along with critical information you should be aware of before deploying.
When running a Chainlit app in production, you should always add
-h to the
chainlit run command. Otherwise a browser window will be opened server side
and might break your deployment.
Currently, you have to serve your Chainlit app from the root of your
domain/subdomain. This means that you can’t serve it from a subdirectory like