-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
126 lines (115 loc) · 3.92 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxt/eslint",
"@nuxt/image",
"@nuxt/ui-pro",
"@nuxt/content",
"nuxt-og-image",
],
devtools: {
enabled: true,
},
css: ["~/assets/css/main.css"],
future: {
compatibilityVersion: 4,
},
compatibilityDate: "2024-07-11",
nitro: {
prerender: {
routes: [
"/",
],
failOnError: false,
crawlLinks: true,
concurrency: 12,
},
},
routeRules: {
// '/getting-started': { redirect: '/getting-started/introduction', prerender: false },
'/layers/ui': { redirect: '/layers/ui/getting-started', prerender: false },
'/modules/gtm': { redirect: '/modules/gtm/getting-started', prerender: false },
'/modules/statamic': { redirect: '/modules/statamic/getting-started', prerender: false },
},
icon: {
clientBundle: {
// list of icons to include in the client bundle
icons: [
'i-ph:paint-brush-broad',
'i-ph:stack',
'i-ph:info',
'i-ph:download',
'i-ph:gear',
'i-ph:handshake',
'i-ph:puzzle-piece',
'i-ph:browsers',
'i-ph:browser',
'i-ph:cube',
'i-ph:house',
'i-simple-icons:nuxt',
'i-simple-icons:statamic',
'i-simple-icons:googletagmanager',
'i-simple-icons:github',
'i-lucide:moon',
'i-lucide:sun',
'i-lucide:search',
'i-lucide:external-link',
'i-lucide:hash',
'i-lucide:chevron-down',
'i-mdi:palette-outline',
'i-mdi:web',
'i-mdi:page-layout-header',
'i-mdi:format-title',
'i-mdi:link-variant',
'i-mdi:image-filter-center-focus-strong-outline',
'i-mdi:white-balance-sunny',
'i-mdi:moon-waning-crescent',
'i-mdi:alphabet-latin',
'i-mdi:magnify',
'i-mdi:page-layout-footer',
'i-mdi:circle-edit-outline',
'i-mdi:table-of-contents',
'i-ph:note-pencil',
'i-lucide:arrow-right',
'i-lucide:arrow-left',
'i-lucide:arrow-up',
'i-lucide:arrow-down',
'i-lucide:arrow-right',
'i-lucide:arrow-left',
'i-lucide:arrow-up',
'i-lucide:chevron-down',
'i-lucide:chevron-up',
'i-lucide:chevron-right',
'i-lucide:chevron-left',
'i-lucide:chevron-up',
'i-lucide:lightbulb',
'i-lucide:arrow-up-right',
'i-simple-icons:visualstudiocode',
'i-lucide:triangle-alert',
'i-vscode-icons:file-type-pnpm',
'i-vscode-icons:file-type-yarn',
'i-vscode-icons:file-type-npm',
'i-vscode-icons:file-type-bun',
'i-vscode-icons:file-type-css',
'i-vscode-icons:file-type-vue',
'i-vscode-icons:file-type-json',
],
// scan all components in the project and include icons
scan: true,
// include all custom collections in the client bundle
includeCustomCollections: true,
// guard for uncompressed bundle size, will fail the build if exceeds
sizeLimitKb: 256,
}
},
eslint: {
config: {
stylistic: {
indent: 4,
quotes: "double",
semi: true,
},
standalone: false,
},
},
});