Skip to content

Commit

Permalink
chore: use plugin-vercel-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Apr 3, 2024
1 parent 131e0ad commit 5aae515
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 529 deletions.
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ const config: Config = {
],
},
],
['vercel-analytics', {
debug: process.env.NODE_ENV === 'development',
mode: 'auto',
},
],
[
'./src/plugin/plugin-content-blog', // 为了实现全局 blog 数据,必须改写 plugin-content-blog 插件
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear && rimraf changelog && rimraf _dogfooding/_swizzle_theme_tests",
"clear": "docusaurus clear && rimraf changelog",
"serve": "docusaurus serve",
"lint": "yarn lint:js && yarn lint:style",
"lint:js": "eslint --fix --report-unused-disable-directives \"**/*.{js,jsx,ts,tsx,mjs}\"",
Expand All @@ -35,11 +35,11 @@
"@docusaurus/core": "3.2.0",
"@docusaurus/plugin-ideal-image": "3.2.0",
"@docusaurus/plugin-pwa": "3.2.0",
"@docusaurus/plugin-vercel-analytics": "^3.2.0",
"@docusaurus/preset-classic": "3.2.0",
"@docusaurus/theme-search-algolia": "3.2.0",
"@giscus/react": "^2.4.0",
"@popperjs/core": "^2.11.8",
"@vercel/analytics": "^1.2.2",
"dayjs": "^1.11.10",
"docusaurus-plugin-baidu-tongji": "0.0.0-beta.4",
"docusaurus-plugin-image-zoom": "^1.0.1",
Expand Down
Loading

0 comments on commit 5aae515

Please sign in to comment.