From 0870a0b04605e8397df7489d9d5a537ab38c1f1b Mon Sep 17 00:00:00 2001 From: Harshvardhan Singh <73544247+Lawful2002@users.noreply.github.com> Date: Wed, 18 Jan 2023 04:24:04 +0530 Subject: [PATCH] fix: Read MAPBOX_API_KEY from environment (#16926) --- docker/.env | 1 + docker/.env-non-dev | 1 + docs/docs/frequently-asked-questions.mdx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/.env b/docker/.env index db3cbbb3f7..5cb16d611a 100644 --- a/docker/.env +++ b/docker/.env @@ -44,3 +44,4 @@ SUPERSET_ENV=development SUPERSET_LOAD_EXAMPLES=yes CYPRESS_CONFIG=false SUPERSET_PORT=8088 +MAPBOX_API_KEY='' diff --git a/docker/.env-non-dev b/docker/.env-non-dev index e4ab1c89dc..0ae4c1c793 100644 --- a/docker/.env-non-dev +++ b/docker/.env-non-dev @@ -44,3 +44,4 @@ SUPERSET_ENV=production SUPERSET_LOAD_EXAMPLES=yes CYPRESS_CONFIG=false SUPERSET_PORT=8088 +MAPBOX_API_KEY='' diff --git a/docs/docs/frequently-asked-questions.mdx b/docs/docs/frequently-asked-questions.mdx index 40c56bdde1..779f6c8c8d 100644 --- a/docs/docs/frequently-asked-questions.mdx +++ b/docs/docs/frequently-asked-questions.mdx @@ -72,7 +72,7 @@ SUPERSET_WEBSERVER_TIMEOUT = 60 ### Why is the map not visible in the geospatial visualization? You need to register a free account at [Mapbox.com](https://www.mapbox.com), obtain an API key, and add it -to **superset_config.py** at the key MAPBOX_API_KEY: +to **.env** and **.env-non-dev** at the key MAPBOX_API_KEY: ``` MAPBOX_API_KEY = "longstringofalphanumer1c"