-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
55 lines (47 loc) · 1.12 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
import { globSync } from 'glob'
const routes = globSync('./content/**/*.md')
.map(path =>
path.slice(7, -3).replace(/\d+\./g, '').replace(/\\/g, '/'),
)
export default defineNuxtConfig({
ssr: false,
/* Fix content module static generate issue */
nitro: {
prerender: {
routes: [...routes],
},
},
experimental: {
payloadExtraction: false,
renderJsonPayloads: true,
typedPages: true,
},
css: [
'element-plus/dist/index.css',
'element-plus/theme-chalk/dark/css-vars.css',
'@/assets/css/main.css',
],
modules: [
'@nuxt/content',
'@unocss/nuxt',
'@vueuse/nuxt',
],
content: {
documentDriven: true,
navigation: {
fields: ['title', 'icon', 'image'],
},
highlight: {
theme: 'one-dark-pro',
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'yaml', 'bash', 'ini', 'xml', 'py'],
},
experimental: {
advanceQuery: false,
clientDB: true,
stripQueryParameters: true,
},
},
devtools: { enabled: false },
features: { inlineStyles: false },
compatibilityDate: '2024-10-08',
})