1
1
// https://nuxt.com/docs/api/configuration/nuxt-config
2
2
export default defineNuxtConfig ( {
3
- compatibilityDate : '2024-08-06' ,
4
3
// experimental: { buildCache: true },
5
4
extends : [ '@nuxt/ui-pro' ] ,
6
5
modules : [
@@ -15,22 +14,12 @@ export default defineNuxtConfig({
15
14
'@nuxt/image' ,
16
15
'@nuxt/scripts'
17
16
] ,
17
+ devtools : {
18
+ enabled : true
19
+ } ,
18
20
colorMode : {
19
21
preference : 'dark'
20
22
} ,
21
- icon : {
22
- clientBundle : {
23
- scan : true
24
- }
25
- } ,
26
- hooks : {
27
- // Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
28
- 'components:extend' : ( components ) => {
29
- const globals = components . filter ( c => [ 'UButton' , 'UIcon' ] . includes ( c . pascalName ) )
30
-
31
- globals . forEach ( c => c . global = true )
32
- }
33
- } ,
34
23
routeRules : {
35
24
'/' : { prerender : true } ,
36
25
'/api/search.json' : { prerender : true } ,
@@ -46,6 +35,7 @@ export default defineNuxtConfig({
46
35
'/docs/server/cache' : { redirect : { statusCode : 301 , to : '/docs/features/cache' } } ,
47
36
'/docs/server/logs' : { redirect : { statusCode : 301 , to : '/docs/getting-started/server-logs' } }
48
37
} ,
38
+ compatibilityDate : '2024-08-06' ,
49
39
nitro : {
50
40
prerender : {
51
41
crawlLinks : true ,
@@ -54,14 +44,24 @@ export default defineNuxtConfig({
54
44
autoSubfolderIndex : false
55
45
}
56
46
} ,
47
+ typescript : {
48
+ strict : false
49
+ } ,
50
+ hooks : {
51
+ // Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
52
+ 'components:extend' : ( components ) => {
53
+ const globals = components . filter ( c => [ 'UButton' , 'UIcon' ] . includes ( c . pascalName ) )
54
+
55
+ globals . forEach ( c => c . global = true )
56
+ }
57
+ } ,
57
58
cloudflareAnalytics : {
58
59
token : '469b1f7049f14941acef0d0262a07ab3' ,
59
60
scriptPath : false
60
61
} ,
61
- devtools : {
62
- enabled : true
63
- } ,
64
- typescript : {
65
- strict : false
62
+ icon : {
63
+ clientBundle : {
64
+ scan : true
65
+ }
66
66
}
67
67
} )
0 commit comments