-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
108 lines (107 loc) · 2.11 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
const mdSource = process.env.NODE_ENV === 'development'
? {
driver: 'fs',
base: '../nsi-md',
}
: {
driver: 'github',
repo: 'mathieunicolas/nsi-md',
branch: 'main',
}
export default defineNuxtConfig({
modules: [
'@nuxthub/core',
'@nuxt/ui-pro',
'@nuxt/content',
'nuxt-auth-utils',
'@pinia/nuxt',
'@nuxt/scripts',
'@nuxt/icon',
'@nuxt/eslint',
'@nuxtjs/mdc',
],
devtools: { enabled: true },
app: {
head: {
link: [
{
rel: 'stylesheet',
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
integrity: 'sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+',
crossorigin: 'anonymous',
},
],
},
},
css: ['~/assets/css/main.css'],
content: {
build: {
markdown: {
remarkPlugins: {
'remark-math': {},
},
rehypePlugins: {
'rehype-katex': {},
},
highlight: {
theme: {
// Default theme (same as single string)
default: 'github-light',
light: 'github-light',
// Theme used if `html.dark`
dark: 'github-dark',
// Theme used if `html.sepia`
sepia: 'monokai',
},
langs: ['py', 'md', 'http'],
},
},
},
database: {
type: 'd1',
binding: 'DB',
},
},
runtimeConfig: {
session: {
cookie: {
domain: '.nsi.rocks',
},
},
},
devServer: {
host: 'localhost.com',
},
future: { compatibilityVersion: 4 },
compatibilityDate: '2024-07-30',
// nitro: {
// prerender: {
// routes: ['/snt', '/nsi'],
// crawlLinks: true,
// },
// },
hub: {
database: true,
kv: true,
blob: true,
},
eslint: {
config: {
stylistic: {
quotes: 'single',
},
},
},
icon: {
customCollections: [{
prefix: 'custom',
dir: './app/assets/icons',
}],
},
// icon: {
// clientBundle: {
// scan: true,
// sizeLimitKb: 512,
// },
// },
})