-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
95 lines (84 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
/*
* Copyright (c) 2023-2024 Leon Linhart
* All rights reserved.
*/
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: "src",
app: {
baseURL: "/",
pageTransition: { name: "page", mode: "out-in" },
head: {
htmlAttrs: { lang: "en" },
link: [
{ rel: "preload", href: "/assets/fonts/Inter.var.woff2", as: "font", type: "font/woff2", crossorigin: "anonymous" },
{ rel: "preload", href: "/assets/fonts/JetBrainsMono-Regular.woff2", as: "font", type: "font/woff2", crossorigin: "anonymous" },
]
}
},
colorMode: {
preference: "system",
fallback: "dark"
},
compatibilityDate: "2024-07-18",
components: {
dirs: [
"~/components/controls",
"~/components/embeds",
"~/components/layout"
]
},
content: {
contentHead: false,
documentDriven: {
// See https://github.com/dan-bowen/nuxt-blog-starter/issues/2
injectPage: false
},
highlight: {
preload: [
"c",
"java",
"json",
"kotlin",
"rust"
],
theme: {
default: "github-light",
"dark-mode": "github-dark"
}
},
sources: {
content: {
driver: "fs",
prefix: "/articles",
base: "src/content/articles"
}
}
},
css: [
"@/assets/css/main.css"
],
fontMetrics: {
// https://github.com/nuxt-modules/fontaine/issues/372
fonts: ['Inter', 'JetBrains Mono']
},
modules: [
"@nuxt/content",
"@nuxt/image",
"@nuxtjs/color-mode",
"@nuxtjs/fontaine",
"nuxt-jsonld"
],
nitro: {
prerender: {
routes: [
"/rss.xml",
"/sitemap.xml"
]
}
},
typescript: {
strict: true,
typeCheck: true
}
})