@@ -2,8 +2,6 @@ import { resolve } from 'path';
22import { buildPages } from './server/remoteContent' ;
33
44export default defineNuxtConfig ( {
5- compatibilityDate : '2024-04-03' ,
6- devtools : { enabled : true } ,
75 modules : [
86 '@nuxt/eslint' ,
97 '@vueuse/nuxt' ,
@@ -14,25 +12,20 @@ export default defineNuxtConfig({
1412 '@nuxtjs/seo' ,
1513 '@nuxtjs/color-mode' ,
1614 ] ,
17- runtimeConfig : {
18- public : {
19- INKEEP_API_KEY : '' ,
20- INKEEP_INTEGRATION_ID : '' ,
21- INKEEP_ORGANIZATION_ID : '' ,
22- NEWSLETTER_URL : '' ,
23- PRODUCT_DIRECTUS_URL : '' ,
24- } ,
25- } ,
26- typescript : {
27- // typeCheck: true,
15+ devtools : { enabled : true } ,
16+ css : [ '~/assets/css/main.scss' ] ,
17+ vue : {
18+ runtimeCompiler : true ,
2819 } ,
29- routeRules : {
30- '/**' : { prerender : true } ,
20+ site : {
21+ name : 'Directus Docs' ,
3122 } ,
32- hooks : {
33- async ready ( ) {
34- await buildPages ( __dirname ) ;
35- } ,
23+ colorMode : {
24+ preference : 'system' ,
25+ fallback : 'light' ,
26+ storage : 'localStorage' ,
27+ storageKey : 'nuxt-color-mode' ,
28+ classSuffix : '' ,
3629 } ,
3730 content : {
3831 highlight : {
@@ -74,12 +67,35 @@ export default defineNuxtConfig({
7467 fields : [ 'root' , 'tags' , 'additional_paths' , 'expandable' ] ,
7568 } ,
7669 } ,
77- colorMode : {
78- preference : 'system' ,
79- fallback : 'light' ,
80- storage : 'localStorage' ,
81- storageKey : 'nuxt-color-mode' ,
82- classSuffix : '' ,
70+ runtimeConfig : {
71+ public : {
72+ INKEEP_API_KEY : '' ,
73+ INKEEP_INTEGRATION_ID : '' ,
74+ INKEEP_ORGANIZATION_ID : '' ,
75+ NEWSLETTER_URL : '' ,
76+ PRODUCT_DIRECTUS_URL : '' ,
77+ } ,
78+ } ,
79+ routeRules : {
80+ '/**' : { prerender : true } ,
81+ } ,
82+ future : {
83+ compatibilityVersion : 4 ,
84+ } ,
85+ compatibilityDate : '2024-04-03' ,
86+ nitro : {
87+ prerender : {
88+ routes : [ '/' , '/api' ] ,
89+ crawlLinks : false ,
90+ } ,
91+ } ,
92+ typescript : {
93+ // typeCheck: true,
94+ } ,
95+ hooks : {
96+ async ready ( ) {
97+ await buildPages ( __dirname ) ;
98+ } ,
8399 } ,
84100 eslint : {
85101 config : {
@@ -89,20 +105,6 @@ export default defineNuxtConfig({
89105 } ,
90106 } ,
91107 } ,
92- site : {
93- name : 'Directus Docs' ,
94- } ,
95- future : {
96- compatibilityVersion : 4 ,
97- } ,
98- schemaOrg : {
99- identity : {
100- type : 'Organization' ,
101- name : 'Directus' ,
102- url : 'https://directus.io' ,
103- logo : 'https://directus.io/images/logo-dark.svg' ,
104- } ,
105- } ,
106108 icon : {
107109 customCollections : [
108110 {
@@ -115,21 +117,19 @@ export default defineNuxtConfig({
115117 } ,
116118 ] ,
117119 } ,
120+ schemaOrg : {
121+ identity : {
122+ type : 'Organization' ,
123+ name : 'Directus' ,
124+ url : 'https://directus.io' ,
125+ logo : 'https://directus.io/images/logo-dark.svg' ,
126+ } ,
127+ } ,
118128 security : {
119129 rateLimiter : false ,
120130 headers : {
121131 crossOriginEmbedderPolicy :
122132 process . env . NODE_ENV === 'development' ? 'unsafe-none' : 'require-corp' ,
123133 } ,
124134 } ,
125- css : [ '~/assets/css/main.scss' ] ,
126- vue : {
127- runtimeCompiler : true ,
128- } ,
129- nitro : {
130- prerender : {
131- routes : [ '/' , '/api' ] ,
132- crawlLinks : false ,
133- } ,
134- } ,
135135} ) ;
0 commit comments