feat: add matomo & bump versions

This commit is contained in:
aria 2025-07-04 16:15:47 +10:00
parent 82102d3625
commit e5cf30613d
Signed by: aria
SSH key fingerprint: SHA256:WqtcVnDMrv1lnUlNah5k31iywFUI/DV+5yHzCTO4Vds
3 changed files with 627 additions and 594 deletions

View file

@ -1,5 +1,6 @@
// @ts-check
import { defineConfig } from "astro/config";
import matomo from 'astro-matomo';
import { remarkModifiedTime } from "./remark-modified-time.mjs";
import preact from "@astrojs/preact";
@ -15,7 +16,27 @@ import mdx from "@astrojs/mdx";
export default defineConfig({
output: process.env.DOCKER_BUILD ? "server" : "static",
site: "https://aria.coffee",
integrations: [preact(), tailwind(), icon(), mdx()],
integrations: [
preact(),
tailwind(),
icon(),
mdx(),
matomo({
enabled: import.meta.env.PROD, // Only load in production
host: "https://analytics.aria.coffee/",
// setCookieDomain: "*.ara.coffee",
// trackerUrl: "js/", // defaults to matomo.php
// srcUrl: "js/", // defaults to matomo.js
siteId: 1,
heartBeatTimer: 5,
// disableCookies: true,
debug: false,
// viewTransition: {
// contentElement: "main"
// }
}),
],
image: {
domains: [