Skip to content
Discussion options

You must be logged in to vote

I apologize for the misleading suggestion earlier — I dug deeper and found that FRONTEND_CONF_KEYS is actually a hardcoded tuple in superset/views/base.py [1], not a configurable setting in superset_config.py. Setting it in your config will have no effect since the code reads the tuple directly from views/base.py.

Here's what should actually work — use COMMON_BOOTSTRAP_OVERRIDES_FUNC instead. This is a configurable hook in superset_config.py that lets you inject custom values into the bootstrap data [2] [3].

In your docker/pythonpath_dev/superset_config.py:

COMMON_BOOTSTRAP_OVERRIDES_FUNC = lambda data: {
    "mapbox_api_key": MAPBOX_API_KEY,
}

Make sure MAPBOX_API_KEY is also set (eithe…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jf-codestryke
Comment options

@dosubot
Comment options

@jf-codestryke
Comment options

@dosubot
Comment options

Answer selected by jf-codestryke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant