Skip to content

Commit 20bfb6b

Browse files
committed
chore: show MapDebugPanel only in dev
1 parent 777cf0d commit 20bfb6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/pages/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Map } from 'maplibre-gl'
33
import { consola } from 'consola'
44
55
const logger = consola.withTag('map')
6+
const isDev = import.meta.dev
67
78
definePageMeta({
89
layout: false,
@@ -244,7 +245,7 @@ async function onMapLoad(event: { map: Map }) {
244245
</ClientOnly>
245246
<MapControls />
246247
<LocationCounter />
247-
<MapDebugPanel />
248+
<MapDebugPanel v-if="isDev" />
248249

249250
<LocationDrawer
250251
v-model:open="isDrawerOpen"

0 commit comments

Comments
 (0)