Skip to content

Commit 5acb49e

Browse files
committed
Fix accessToken in demo
1 parent f1b6ef9 commit 5acb49e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/demo/pages/index.vue

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

20-
const { accessToken } = useRuntimeConfig();
20+
const {
21+
public: { accessToken },
22+
} = useRuntimeConfig();
2123
const lng = ref(0);
2224
const lat = ref(0);
2325
const zoom = ref(1);

packages/demo/pages/issue-77.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import { MapboxMap, MapboxGeolocateControl } from '@studiometa/vue-mapbox-gl';
44
import 'mapbox-gl/dist/mapbox-gl.css';
55
6-
const { accessToken } = useRuntimeConfig();
6+
const {
7+
public: { accessToken },
8+
} = useRuntimeConfig();
79
810
const geolocate = ref();
911
const control = computed(() => geolocate.value?.control);

0 commit comments

Comments
 (0)