Skip to content

Commit 746f9aa

Browse files
committed
Add Umami analytics
1 parent c354988 commit 746f9aa

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
run: pnpm install
2929

3030
- name: Build application
31+
run: pnpm build
3132
env:
3233
NUXT_PUBLIC_COMMIT_HASH: ${{ github.sha }}
33-
run: pnpm build

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
run: pnpm install
2929

3030
- name: Build application
31+
run: pnpm build
3132
env:
3233
NUXT_PUBLIC_COMMIT_HASH: ${{ github.sha }}
33-
run: pnpm build
3434

3535
- name: Deploy to Cloudflare Pages
3636
uses: cloudflare/wrangler-action@v3

.vitepress/config.mts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ import sidebar from "./sidebar.mjs";
55
export default defineConfig({
66
title: "Leaf",
77
description: "Performant fork of Paper",
8-
head: [["link", { rel: "icon", href: "/logo.svg" }]],
8+
head: [
9+
["link", { rel: "icon", href: "/logo.svg" }],
10+
[
11+
"script",
12+
{
13+
async: "",
14+
defer: "",
15+
src: "https://umami.crashvibe.cn/script.js",
16+
"data-domains": "www.leafmc.one",
17+
"data-website-id": "10d1f4d2-4468-47fa-afe9-68206a082b9f",
18+
},
19+
],
20+
],
921

1022
vite: {
1123
css: {

0 commit comments

Comments
 (0)