diff --git a/.env.development.local.example b/.env.development.local.example index 54ead7ed2..eab5e540c 100644 --- a/.env.development.local.example +++ b/.env.development.local.example @@ -1,2 +1,2 @@ # remove the <.example> extension from the file name -VITE_MAPBOX_ACCESS_TOKEN="Replace this with your own Mapbox access token" \ No newline at end of file +MAPBOX_ACCESS_TOKEN="Replace this with your own Mapbox access token" \ No newline at end of file diff --git a/debug/access_token.js b/debug/access_token.js index 86966f182..e3868b98f 100644 --- a/debug/access_token.js +++ b/debug/access_token.js @@ -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');