chore(deps,deps-dev): update deps & deps-dev
This commit is contained in:
@@ -82,7 +82,6 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
|
||||
},
|
||||
define: {
|
||||
__ANALYTICS_ID__: process.env.VERCEL_ANALYTICS_ID,
|
||||
__METICULOUS_PROJECT_ID__: process.env.METICULOUS_PROJECT_ID,
|
||||
},
|
||||
plugins: [
|
||||
copyVueFlowPlugin(),
|
||||
|
||||
@@ -7,8 +7,6 @@ const { Layout: ParentLayout } = DefaultTheme
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
const METICULOUS_SAMPLING_RATE = 0.01
|
||||
|
||||
onMounted(async () => {
|
||||
const isDev = import.meta.env.DEV
|
||||
|
||||
@@ -17,18 +15,6 @@ onMounted(async () => {
|
||||
webVitals({ analyticsId: '__ANALYTICS_ID__', debug: false })
|
||||
}
|
||||
|
||||
if (!isDev || Math.random() < METICULOUS_SAMPLING_RATE) {
|
||||
const { tryLoadAndStartRecorder } = await import('@alwaysmeticulous/recorder-loader')
|
||||
|
||||
// Start the Meticulous recorder before you initialise your app.
|
||||
// Note: all errors are caught and logged, so no need to surround with try/catch
|
||||
tryLoadAndStartRecorder({
|
||||
projectId: '__METICULOUS_PROJECT_ID__',
|
||||
isProduction: !isDev,
|
||||
maxMsToBlockFor: !isDev ? 250 : undefined, // Optional, abandon waiting to load the Meticulous recorder, if it takes more than 250ms
|
||||
})
|
||||
}
|
||||
|
||||
watch(
|
||||
route,
|
||||
(nextRoute) => {
|
||||
|
||||
Reference in New Issue
Block a user