11// https://nuxt.com/docs/api/configuration/nuxt-config
22export default defineNuxtConfig ( {
3- compatibilityDate : '2024-08-06' ,
43 // experimental: { buildCache: true },
54 extends : [ '@nuxt/ui-pro' ] ,
65 modules : [
@@ -15,22 +14,12 @@ export default defineNuxtConfig({
1514 '@nuxt/image' ,
1615 '@nuxt/scripts'
1716 ] ,
17+ devtools : {
18+ enabled : true
19+ } ,
1820 colorMode : {
1921 preference : 'dark'
2022 } ,
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- } ,
3423 routeRules : {
3524 '/' : { prerender : true } ,
3625 '/api/search.json' : { prerender : true } ,
@@ -46,6 +35,7 @@ export default defineNuxtConfig({
4635 '/docs/server/cache' : { redirect : { statusCode : 301 , to : '/docs/features/cache' } } ,
4736 '/docs/server/logs' : { redirect : { statusCode : 301 , to : '/docs/getting-started/server-logs' } }
4837 } ,
38+ compatibilityDate : '2024-08-06' ,
4939 nitro : {
5040 prerender : {
5141 crawlLinks : true ,
@@ -54,14 +44,24 @@ export default defineNuxtConfig({
5444 autoSubfolderIndex : false
5545 }
5646 } ,
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+ } ,
5758 cloudflareAnalytics : {
5859 token : '469b1f7049f14941acef0d0262a07ab3' ,
5960 scriptPath : false
6061 } ,
61- devtools : {
62- enabled : true
63- } ,
64- typescript : {
65- strict : false
62+ icon : {
63+ clientBundle : {
64+ scan : true
65+ }
6666 }
6767} )
0 commit comments