feat: add matomo & bump versions
This commit is contained in:
parent
82102d3625
commit
e5cf30613d
3 changed files with 627 additions and 594 deletions
|
@ -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: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue