'Intuitive, type safe, light and flexible Store for Vue'
const META_IMAGE = 'https://pinia.esm.dev/social.png'
+const isProduction = process.env.NODE_ENV
+/**
+ * @type {import('vitepress').UserConfig['head']}
+ */
+const productionHead = [
+ [
+ 'script',
+ {
+ src: 'https://unpkg.com/thesemetrics@latest',
+ async: '',
+ type: 'text/javascript',
+ },
+ ],
+]
+
/**
* @type {import('vitepress').UserConfig}
*/
onload: "this.onload=null;this.rel='stylesheet'",
},
],
+ ...(isProduction ? productionHead : []),
],
themeConfig: {
repo: 'posva/pinia',