chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Serve chainlit app from a subdirectory

Open ArthurJahn opened this issue 2 years ago • 3 comments
trafficstars

The docs says that

"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 example.com/my-app."

So, I'd like to be able to serve the app from different base path, like setting a base tag or something.

ArthurJahn avatar Nov 01 '23 13:11 ArthurJahn

Yes this is a current limitation. Setting a subdomain and serving the app from the subdomain root is not an option for you?

willydouhard avatar Nov 02 '23 07:11 willydouhard

Yes, we can mitigate that way, but a best solution for us would be to serve the app from a subdir. I can work on that if you guys think it's a nice feature to be added and if there is no known limitations to develop that feature.

ArthurJahn avatar Nov 03 '23 21:11 ArthurJahn

Would love contributions on that topic! I don't think we have any particular requirements except for the http endpoints to work correctly (maybe also oauth redirections). We do have the concept of CHAINLIT_URL already to help with tricky oauth redirections.

willydouhard avatar Nov 03 '23 22:11 willydouhard