Skip to content

Commit 3de06ed

Browse files
committed
Update mapbox token
1 parent ede5f24 commit 3de06ed

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

packages/demo/nuxt.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22
export default defineNuxtConfig({
33
devtools: { enabled: true },
44
compatibilityDate: '2025-01-02',
5+
runtimeConfig: {
6+
public: {
7+
accessToken:
8+
'pk.eyJ1IjoiYWdlbmNlc3R1ZGlvbWV0YSIsImEiOiJjbTZxZXZidzYxaXR3MmtzaG5qNzc3NGxqIn0.c_YVpXQptiZtOgzj_5jvaw',
9+
},
10+
},
511
});

packages/demo/pages/index.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
import 'mapbox-gl/dist/mapbox-gl.css';
1818
import '@mapbox/mapbox-gl-geocoder/lib/mapbox-gl-geocoder.css';
1919

20-
const accessToken =
21-
'pk.eyJ1IjoiYWdlbmNlc3R1ZGlvbWV0YSIsImEiOiJjanh5ZW81aHEwOHV3M2lwZzhhNW1vdXl5In0.3hbV2QKVzZWf511JK9xCug';
20+
const { accessToken } = useRuntimeConfig();
2221
const lng = ref(0);
2322
const lat = ref(0);
2423
const zoom = ref(1);

packages/demo/pages/issue-77.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import { MapboxMap, MapboxGeolocateControl } from '@studiometa/vue-mapbox-gl';
44
import 'mapbox-gl/dist/mapbox-gl.css';
55
6-
const accessToken =
7-
'pk.eyJ1IjoiYWdlbmNlc3R1ZGlvbWV0YSIsImEiOiJjanh5ZW81aHEwOHV3M2lwZzhhNW1vdXl5In0.3hbV2QKVzZWf511JK9xCug';
6+
const { accessToken } = useRuntimeConfig();
87
98
const geolocate = ref();
109
const control = computed(() => geolocate.value?.control);

packages/docs/.vitepress/theme/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export default {
55
...DefaultTheme,
66
enhanceApp({ app }) {
77
app.config.globalProperties.MAPBOX_API_KEY =
8-
'pk.eyJ1IjoiYWdlbmNlc3R1ZGlvbWV0YSIsImEiOiJjanh5ZW81aHEwOHV3M2lwZzhhNW1vdXl5In0.3hbV2QKVzZWf511JK9xCug';
8+
'pk.eyJ1IjoiYWdlbmNlc3R1ZGlvbWV0YSIsImEiOiJjbTZxZXZidzYxaXR3MmtzaG5qNzc3NGxqIn0.c_YVpXQptiZtOgzj_5jvaw';
99
},
1010
};

packages/tests/components/MapboxMap.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('The MapboxMap component', () => {
88
const { emitted, getByTestId } = render(MapboxMap, {
99
props: {
1010
accessToken:
11-
'pk.eyJ1IjoiYWdlbmNlc3R1ZGlvbWV0YSIsImEiOiJjanh5ZW81aHEwOHV3M2lwZzhhNW1vdXl5In0.3hbV2QKVzZWf511JK9xCug',
11+
'pk.eyJ1IjoiYWdlbmNlc3R1ZGlvbWV0YSIsImEiOiJjbTZxZXZidzYxaXR3MmtzaG5qNzc3NGxqIn0.c_YVpXQptiZtOgzj_5jvaw',
1212
mapStyle: 'mapbox://styles/mapbox/streets-v11',
1313
},
1414
attrs: {

0 commit comments

Comments
 (0)