-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
107 lines (88 loc) · 2.03 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import content from "./config/content";
import htmlValidator from "./config/html-validator";
import i18nConfig from "./config/i18n";
import icon from "./config/icon";
import image from "./config/image";
export default defineNuxtConfig({
experimental: {
componentIslands: true,
viewTransition: true,
},
runtimeConfig: {
public: {
enableIpadCursor: false,
},
},
build: {},
devtools: { enabled: true },
nitro: {
prerender: {
routes: ["/", "/sitemap.xml", "/articles", "/projects"],
},
},
routeRules: {
"/articles/**": { isr: true },
},
modules: [
"@nuxt/ui",
"@nuxt/image",
"@nuxt/content",
"@nuxt/eslint",
"@nuxtjs/fontaine",
"@nuxtjs/i18n",
"@nuxtjs/mdc",
"@nuxtjs/sitemap",
"@nuxtjs/html-validator",
"nuxt-delay-hydration",
"nuxt-svgo",
"@vueuse/nuxt",
"@vueuse/motion/nuxt",
"@pinia/nuxt",
"@nuxthq/studio",
"@nuxt/icon",
"@formkit/auto-animate/nuxt",
"@nuxt/fonts",
],
eslint: {
config: {},
},
pinia: {
storesDirs: ["./stores/**"],
},
site: {
url: "https://www.hoachnt.com",
name: "Nguyen Tien Hoach",
},
delayHydration: {
mode: "mount",
replayClick: true,
},
i18n: i18nConfig,
icon: icon,
app: {
head: {
htmlAttrs: {
lang: "en",
class: "h-dvh",
},
bodyAttrs: {
class: "antialiased bg-gray-50 dark:bg-black min-h-dvh",
},
},
},
content: content,
svgo: {
autoImportPath: "./assets/logo/",
},
sitemap: {
strictNuxtContentPaths: true,
},
image: image,
mdc: {
highlight: {
langs: ["bash", "javascript", "html", "vue", "nix"],
},
},
htmlValidator: htmlValidator,
compatibilityDate: "2024-08-14",
});