Skip to content

Commit

Permalink
chore: Update Mapbox access token variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
varna committed Jul 3, 2024
1 parent 41d736a commit 7461713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.development.local.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# remove the <.example> extension from the file name
VITE_MAPBOX_ACCESS_TOKEN="Replace this with your own Mapbox access token"
MAPBOX_ACCESS_TOKEN="Replace this with your own Mapbox access token"
2 changes: 1 addition & 1 deletion debug/access_token.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function getAccessToken() {
const accessToken =
import.meta.env.VITE_MAPBOX_ACCESS_TOKEN ||
import.meta.env.MAPBOX_ACCESS_TOKEN ||
(new URLSearchParams(location.search).get('access_token')) ||
localStorage.getItem('accessToken');

Expand Down

0 comments on commit 7461713

Please sign in to comment.