Skip to content

Commit d2d2f2e

Browse files
authored
Merge pull request #1504 from MTES-MCT/fix-vector-tiles-location
Modifier l'emplacement des tuiles vectorielles en staging
2 parents 1e83856 + a9afdd3 commit d2d2f2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@
275275
MEDIA_URL = f"https://{AWS_STORAGE_BUCKET_NAME}.s3.fr-par.scw.cloud/{PUBLIC_MEDIA_LOCATION}/"
276276

277277

278-
if ENVIRONMENT == "production":
279-
VECTOR_TILES_LOCATION = f"https://{AWS_STORAGE_BUCKET_NAME}.s3.fr-par.scw.cloud/vector_tiles"
280-
else:
278+
if ENVIRONMENT == "local":
281279
VECTOR_TILES_LOCATION = "https://airflow-dev-alexis.s3.fr-par.scw.cloud/vector_tiles"
280+
else:
281+
VECTOR_TILES_LOCATION = f"https://{AWS_STORAGE_BUCKET_NAME}.s3.fr-par.scw.cloud/vector_tiles"
282282

283283

284284
MATOMO_CONTAINER_SRC = env.str("MATOMO_CONTAINER_SRC", default="https://stats.beta.gouv.fr/js/container_26e5XOBD.js")

frontend/scripts/components/map/constants/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const ORTHOPHOTO_TILES_URL = "https://data.geopf.fr/wmts?SERVICE=WMTS&REQ
1212
export const OSM_TILES_URL = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
1313

1414
export const OCSGE_TILES_URL = "https://airflow-staging.s3.fr-par.scw.cloud/vector_tiles/";
15-
export const ZONAGE_URBANISME_TILES_URL = "https://airflow-dev-alexis.s3.fr-par.scw.cloud/vector_tiles/";
15+
export const ZONAGE_URBANISME_TILES_URL = "https://airflow-staging.s3.fr-par.scw.cloud/vector_tiles/";
1616
export const OCSGE_GEOJSON_CENTROIDS_URL = "https://airflow-staging.s3.fr-par.scw.cloud/geojson/occupation_du_sol_diff_centroid_";
1717
export const OCSGE_GEOJSON_BASE_URL = "https://airflow-staging.s3.fr-par.scw.cloud/geojson/";
1818

0 commit comments

Comments
 (0)