From: Eduardo San Martin Morote Date: Fri, 18 Sep 2020 09:31:20 +0000 (+0200) Subject: docs: add thesemetrics X-Git-Tag: v4.0.0-beta.10~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b46d97b257457328617aa61cc701c181c7520c53;p=thirdparty%2Fvuejs%2Frouter.git docs: add thesemetrics --- diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 51a192f2..35ad90e9 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,4 +1,19 @@ -/** @type {import('vitepress').UserConfig} */ +/** @typedef {import('vitepress').UserConfig} UserConfig */ + +/** @type {UserConfig['head']} */ +const head = [] + +if (process.env.NODE_ENV === 'production') { + head.push([ + 'script', + { + src: 'https://unpkg.com/thesemetrics@latest', + async: '', + }, + ]) +} + +/** @type {UserConfig} */ const config = { lang: 'en-US', title: 'Vue Router', @@ -15,6 +30,7 @@ const config = { description: 'El router oficial par Vue.js', }, }, + head, // serviceWorker: true, themeConfig: { // algolia: {