Deploy to Cloudflare pages

Has anyone had any luck deploying to cloudflare pages?

Hi @John_Smith,

Thanks for posting!

I haven’t personally tried what you’re asking, and as far as I’m aware, we don’t yet have documentation that explains how to deploy a Streamlit app to Cloudflare pages. That being said, Cloudflare pages do support Python, so I can’t see why it wouldn’t be possible.

I would suggest downloading the Cloudflare CLI and following the steps highlighted in this tutorial, adapting it to your Streamlit code.

You might also want to check the Streamlit Deployment Wiki for alternative deployment solutions. And, if you’re up for writing about your solution, we would most certainly amplify it and add it to that Wiki too! :wink:

Good luck, and if you have any questions along the way, please let us know :pray:


Talked to the developer support team, cloudflare pages doesn’t support it. It’s meant for serverless apps but streamlit requires a server to run.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.