From a9fbf96b6230eaa189777e6a79157b7c12f2b053 Mon Sep 17 00:00:00 2001 From: Lars Hampe <hello@hashdot.co> Date: Sat, 28 Sep 2024 17:40:23 +0200 Subject: [PATCH] feat(website): add umami analytics --- apps/website/astro.config.mjs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/website/astro.config.mjs b/apps/website/astro.config.mjs index a841613..1ba02d9 100644 --- a/apps/website/astro.config.mjs +++ b/apps/website/astro.config.mjs @@ -1,13 +1,21 @@ import starlight from '@astrojs/starlight' -// @ts-check import { defineConfig } from 'astro/config' -// https://astro.build/config export default defineConfig({ outDir: '../../build/website', integrations: [ starlight({ title: 'boring.tools', + head: [ + { + tag: 'script', + attrs: { + src: 'https://umami.hashdot.co/script.js', + 'data-website-id': '78b1d598-5783-4bc5-a414-4319fea1876a', + defer: true, + }, + }, + ], social: { github: 'https://github.com/boring-tools/boring.tools', },