When deploying to Streamlit Cloud, do I put the Mapbox token in the app’s secrets? Or, is there some other place for app configs?
Hi @kinghuang,
You should add your Mapbox token to the Streamlit .streamlit/config.toml
configuration file in your repo:
[mapbox]
# Configure Streamlit to use a custom Mapbox token for elements like st.deck_gl_chart and st.map. To get a token for yourself, create an account at https://mapbox.com. It's free (for moderate usage levels)!
# Default: ""
token = ""
Please see this knowledge base article and forum thread for more information.
Happy Streamlit-ing!
Snehan
Checking the key into the repository would leak it to anyone that cares to look. Is there not a more secure way to do this for Streamlit Cloud apps?
That’s a really good point @kinghuang, let me consult our engineering team about this. I hope this isn’t something we neglected to consider
Best,
Randy
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.