Skip to content

Commit

Permalink
perf: adopt vitalizer (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored Dec 17, 2024
1 parent 4335af3 commit 733218c
Show file tree
Hide file tree
Showing 3 changed files with 438 additions and 2 deletions.
8 changes: 7 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export default defineNuxtConfig({
'@unocss/nuxt',
'@pinia/nuxt',
'nuxt-security',
'nuxt-vitalizer',
],

gtm: {
Expand Down Expand Up @@ -205,4 +206,9 @@ export default defineNuxtConfig({
baseURL: 'https://affine.pro',
},
},
});

vitalizer: {
disablePrefetchLinks: true,
disablePreloadLinks: true,
},
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"nuxt-icons": "^3.1.0",
"nuxt-mixpanel": "^1.0.0",
"nuxt-security": "^2.0.0-rc.9",
"nuxt-vitalizer": "0.10.0",
"pug": "^3.0.2",
"rehype-prism-plus": "^1.5.1",
"rehype-slug": "^6.0.0",
Expand Down
Loading

0 comments on commit 733218c

Please sign in to comment.