diff --git a/src/client/app/index.ts b/src/client/app/index.ts index d8d6e231..691efebd 100644 --- a/src/client/app/index.ts +++ b/src/client/app/index.ts @@ -75,7 +75,7 @@ export function createApp() { } // setup devtools in dev mode - if (import.meta.env.DEV) { + if (import.meta.env.DEV || __VUE_PROD_DEVTOOLS__) { setupDevtools(app, router, data) } diff --git a/src/client/shim.d.ts b/src/client/shim.d.ts index 6a486e5d..868fc51e 100644 --- a/src/client/shim.d.ts +++ b/src/client/shim.d.ts @@ -1,6 +1,7 @@ declare const __VP_HASH_MAP__: Record declare const __ALGOLIA__: boolean declare const __CARBON__: boolean +declare const __VUE_PROD_DEVTOOLS__: boolean declare module '*.vue' { import { ComponentOptions } from 'vue'