Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Sep 5, 2024
1 parent 8d0f74d commit 9f92fee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
21 changes: 15 additions & 6 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,29 @@ export default defineNuxtConfig({
devServer: {
port: 1111,
},

modules: [
'@vueuse/nuxt',
'@unocss/nuxt',
// '@nuxt/content',
// '@vite-pwa/nuxt',
],

experimental: {
viewTransition: true,
renderJsonPayloads: true,
},

css: [
'~/styles/fonts.css',
'~/styles/main.css',
'~/styles/vars.css',
],

devtools: {
enabled: false,
},

// content: {
// highlight: {
// theme: 'vitesse-dark',
Expand All @@ -34,6 +39,7 @@ export default defineNuxtConfig({
app: {
keepalive: true,
},

vite: {
define: {
'import.meta.env.__BUILD_TIME__': JSON.stringify(new Date().toISOString()),
Expand All @@ -43,16 +49,19 @@ export default defineNuxtConfig({
target: 'esnext',
},
},
nitro: {
prerender: {
crawlLinks: false,
routes: ['/'],
},
},

// intlify: {
// localeDir: 'locales',
// vueI18n: {
// locale: 'zh-cn',
// },
// },
nitro: {
prerender: {
crawlLinks: false,
routes: ['/'],
},
},

compatibilityDate: '2024-09-05',
})
21 changes: 3 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f92fee

Please sign in to comment.