-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathnuxt.config.ts
67 lines (57 loc) · 1.2 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
export default defineNuxtConfig({
extends: '@nuxt/ui-pro',
routeRules: {
'/guide': { redirect: '/guide/getting-started' },
},
modules: [
'@nuxt/image',
'@nuxt/content',
'@nuxt/fonts',
'@nuxt/ui',
'@nuxthq/studio',
'@vueuse/nuxt',
'@nuxtjs/plausible',
'nuxt-og-image',
...(process.env.CI ? [] : ['../local']),
],
colorMode: {
preference: 'dark',
},
site: {
url: 'https://devtools.nuxt.com',
},
ui: {
icons: ['heroicons', 'simple-icons', 'ph'],
},
nitro: {
prerender: {
routes: ['/api/search.json'],
autoSubfolderIndex: false,
},
},
hooks: {
// Related to https://github.com/nuxt/nuxt/pull/22558
// Adding all global components to the main entry
// To avoid lagging during page navigation on client-side
'components:extend': function (components) {
for (const comp of components) {
if (comp.global)
comp.global = 'sync'
}
},
},
// devtools: {
// enabled: true,
// componentInspector: {
// cleanHtml: false,
// },
// },
$production: {
nitro: {
experimental: {
wasm: true,
},
},
},
compatibilityDate: '2025-02-16',
})