chore: 试一下vercel analytics

This commit is contained in:
camera-2018
2023-08-02 02:39:01 +08:00
parent 4408125295
commit af3223b598
3 changed files with 14 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import { createWriteStream } from 'node:fs'
import { resolve } from 'node:path' import { resolve } from 'node:path'
import { SitemapStream } from 'sitemap' import { SitemapStream } from 'sitemap'
import { fileURLToPath, URL } from 'node:url' import { fileURLToPath, URL } from 'node:url'
import { inject } from '@vercel/analytics';
const links = [] const links = []
@@ -167,6 +168,7 @@ export default withMermaid({
}) })
}, },
buildEnd: async ({ outDir }) => { buildEnd: async ({ outDir }) => {
inject()
const sitemap = new SitemapStream({ const sitemap = new SitemapStream({
hostname: 'https://hdu-cs.wiki/' hostname: 'https://hdu-cs.wiki/'
}) })

11
package-lock.json generated
View File

@@ -9,6 +9,7 @@
"@codemirror/lang-sql": "^6.5.2", "@codemirror/lang-sql": "^6.5.2",
"@jupyterlab/mathjax2": "^3.6.5", "@jupyterlab/mathjax2": "^3.6.5",
"@jupyterlab/theme-light-extension": "^4.0.3", "@jupyterlab/theme-light-extension": "^4.0.3",
"@vercel/analytics": "^1.0.1",
"@vueuse/core": "^10.3.0", "@vueuse/core": "^10.3.0",
"markdown-it": "^13.0.1", "markdown-it": "^13.0.1",
"markdown-it-pangu": "^1.0.2", "markdown-it-pangu": "^1.0.2",
@@ -1399,6 +1400,11 @@
"resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz", "resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz",
"integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA==" "integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA=="
}, },
"node_modules/@vercel/analytics": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/@vercel/analytics/-/analytics-1.0.1.tgz",
"integrity": "sha512-Ux0c9qUfkcPqng3vrR0GTrlQdqNJ2JREn/2ydrVuKwM3RtMfF2mWX31Ijqo1opSjNAq6rK76PwtANw6kl6TAow=="
},
"node_modules/@vitejs/plugin-vue": { "node_modules/@vitejs/plugin-vue": {
"version": "4.2.3", "version": "4.2.3",
"resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz", "resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz",
@@ -5260,6 +5266,11 @@
"resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz", "resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz",
"integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA==" "integrity": "sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA=="
}, },
"@vercel/analytics": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/@vercel/analytics/-/analytics-1.0.1.tgz",
"integrity": "sha512-Ux0c9qUfkcPqng3vrR0GTrlQdqNJ2JREn/2ydrVuKwM3RtMfF2mWX31Ijqo1opSjNAq6rK76PwtANw6kl6TAow=="
},
"@vitejs/plugin-vue": { "@vitejs/plugin-vue": {
"version": "4.2.3", "version": "4.2.3",
"resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz", "resolved": "https://repo.huaweicloud.com/repository/npm/@vitejs/plugin-vue/-/plugin-vue-4.2.3.tgz",

View File

@@ -9,6 +9,7 @@
"@codemirror/lang-sql": "^6.5.2", "@codemirror/lang-sql": "^6.5.2",
"@jupyterlab/mathjax2": "^3.6.5", "@jupyterlab/mathjax2": "^3.6.5",
"@jupyterlab/theme-light-extension": "^4.0.3", "@jupyterlab/theme-light-extension": "^4.0.3",
"@vercel/analytics": "^1.0.1",
"@vueuse/core": "^10.3.0", "@vueuse/core": "^10.3.0",
"markdown-it": "^13.0.1", "markdown-it": "^13.0.1",
"markdown-it-pangu": "^1.0.2", "markdown-it-pangu": "^1.0.2",