Hi, I’m trying to connect my domain www.cryptopredictor.co.uk to my Streamlit app.
The domain is correctly set up with a CNAME pointing to gh-pages.streamlit.app, and A records for the root domain.
But the Streamlit UI throws: “A subdomain can only contain a-z, 0-9, and - characters. Please provide an alternative subdomain.”
Please manually link www.cryptopredictor.co.uk to my app:
GitHub: [phillycodes69]/[yourrepo]
Streamlit App URL: https://yourusername-yourrepo.streamlit.app
Currently, you can only set the subdomain for a Community Cloud app. If you want to use your own top-level domain, you’ll need to host the app somewhere else. You can use an iframe if you want to host a static site somewhere else to show your Community Cloud app, but that does obfuscate paths and query params.
Hi thank you for your reply, I’ve bought a domain name off squarespace would that work?
If you want to host a static website somewhere else that just has an iframe to your Community Cloud app, you should be able to do that almost anywhere. That’s just plain HTML. However, if you want to actually host your app directly from another domain, you’d need a host that can run the Python server.
Ah okey i kinda understand so I would need someone to run the website if it was actually on the web?
Yes, one way or another, you will need to host something somewhere else.
Ah okey thank you for the help anyways