Skip to content

Commit b46d97b

Browse files
committed
docs: add thesemetrics
1 parent 83488a5 commit b46d97b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/.vitepress/config.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
/** @type {import('vitepress').UserConfig} */
1+
/** @typedef {import('vitepress').UserConfig} UserConfig */
2+
3+
/** @type {UserConfig['head']} */
4+
const head = []
5+
6+
if (process.env.NODE_ENV === 'production') {
7+
head.push([
8+
'script',
9+
{
10+
src: 'https://unpkg.com/thesemetrics@latest',
11+
async: '',
12+
},
13+
])
14+
}
15+
16+
/** @type {UserConfig} */
217
const config = {
318
lang: 'en-US',
419
title: 'Vue Router',
@@ -15,6 +30,7 @@ const config = {
1530
description: 'El router oficial par Vue.js',
1631
},
1732
},
33+
head,
1834
// serviceWorker: true,
1935
themeConfig: {
2036
// algolia: {

0 commit comments

Comments
 (0)