@@ -29,18 +29,6 @@ export default defineNuxtConfig({
29
29
} ,
30
30
] ,
31
31
32
- future : {
33
- compatibilityVersion : 4 ,
34
- } ,
35
-
36
- hooks : {
37
- // Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
38
- 'components:extend' : ( components ) => {
39
- const globals = components . filter ( c => [ 'UButton' , 'UIcon' , 'UAlert' ] . includes ( c . pascalName ) )
40
- globals . forEach ( c => c . global = true )
41
- } ,
42
- } ,
43
-
44
32
$production : {
45
33
scripts : {
46
34
registry : {
@@ -51,6 +39,10 @@ export default defineNuxtConfig({
51
39
} ,
52
40
} ,
53
41
42
+ devtools : {
43
+ enabled : true ,
44
+ } ,
45
+
54
46
app : {
55
47
head : {
56
48
seoMeta : {
@@ -65,22 +57,28 @@ export default defineNuxtConfig({
65
57
} ,
66
58
} ,
67
59
60
+ site : {
61
+ name : 'Nuxt Scripts' ,
62
+ url : 'scripts.nuxt.com' ,
63
+ } ,
64
+
68
65
ui : {
69
66
icons : [ 'heroicons' , 'ph' , 'simple-icons' ] ,
70
67
} ,
71
68
69
+ build : {
70
+ transpile : [ 'shiki' ] ,
71
+ } ,
72
+
72
73
routeRules : {
73
74
'/api/search.json' : { prerender : true } ,
74
75
} ,
75
76
76
- site : {
77
- name : 'Nuxt Scripts' ,
78
- url : 'scripts.nuxt.com' ,
77
+ future : {
78
+ compatibilityVersion : 4 ,
79
79
} ,
80
80
81
- sitemap : {
82
- strictNuxtContentPaths : true ,
83
- } ,
81
+ compatibilityDate : '2024-07-03' ,
84
82
85
83
nitro : {
86
84
prerender : {
@@ -89,17 +87,19 @@ export default defineNuxtConfig({
89
87
} ,
90
88
} ,
91
89
92
- build : {
93
- transpile : [ 'shiki' ] ,
90
+ typescript : {
91
+ strict : false ,
94
92
} ,
95
93
96
- devtools : {
97
- enabled : true ,
94
+ hooks : {
95
+ // Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
96
+ 'components:extend' : ( components ) => {
97
+ const globals = components . filter ( c => [ 'UButton' , 'UIcon' , 'UAlert' ] . includes ( c . pascalName ) )
98
+ globals . forEach ( c => c . global = true )
99
+ } ,
98
100
} ,
99
101
100
- typescript : {
101
- strict : false ,
102
+ sitemap : {
103
+ strictNuxtContentPaths : true ,
102
104
} ,
103
-
104
- compatibilityDate : '2024-07-03' ,
105
105
} )
0 commit comments