Skip to content

Commit

Permalink
refactor: update Mapbox token environment variable for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1026 committed Dec 17, 2024
1 parent 596f4c5 commit 9081196
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ DB_ROOT_PASS="J0¿H.MXA;'J6!XE"
DB_HOST=database
DB_PORT=3306

#* API Tokens
MAPBOX_TOKEN=pk.

#* Sentry
SENTRY_DSN_API=https://{PUBLIC_KEY}@{HOST}.ingest.de.sentry.io/{PROJECT_ID}
SENTRY_DSN_APP=https://{PUBLIC_KEY}@{HOST}.ingest.de.sentry.io/{PROJECT_ID}

# MapBox
MAPBOX=pk.
2 changes: 1 addition & 1 deletion app/src/app/Views/Admin/Inventory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="map"></div>
<script>
mapboxgl.accessToken = '<?= getenv("MAPBOX")?>';
mapboxgl.accessToken = '<?= getenv("MAPBOX_TOKEN") ?>';
const map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v9',
Expand Down
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services:
- DB_USER=${DB_USER}
- DB_PASS_FILE_PATH=/run/secrets/db_pass
- SENTRY_DSN=${SENTRY_DSN_APP}
- MAPBOX=${MAPBOX}
- MAPBOX_TOKEN=${MAPBOX_TOKEN}
develop:
watch:
- action: sync
Expand Down

0 comments on commit 9081196

Please sign in to comment.