-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
121 lines (106 loc) · 2.13 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
109
110
111
112
113
114
115
116
117
118
119
120
121
export default defineNuxtConfig({
future: {
compatibilityVersion: 4
},
app: {
head: {
viewport: 'width=device-width, initial-scale=1',
charset: 'utf-8',
},
},
site: {
url: 'https://hrcd.fr',
name: 'Hugo Richard - Developer & Designer',
description: 'Hugo Richard, french developer and designer based in Nice.',
defaultLocale: 'en',
indexable: true,
},
robots: {
disallow: ['/notes'],
},
routeRules: {
'/': { isr: true, prerender: true },
'/notes/**': { robots: false },
},
modules: [
'mockline',
'@nuxt/content',
'@nuxthq/studio',
'@nuxt/image',
'@nuxtjs/seo',
'@nuxt/scripts',
'@vueuse/nuxt',
],
runtimeConfig: {
public: {
meetingLink: '',
},
private: {
resendApiKey: '',
notesPassword: '',
},
},
icon: {
class: 'fill-current',
customCollections: [
{
prefix: 'custom',
dir: './app/assets/icons'
},
],
clientBundle: {
scan: true,
includeCustomCollections: true
},
provider: 'iconify'
},
colorMode: {
classSuffix: '',
preference: 'light',
fallback: 'light',
storageKey: 'hr-folio-color-mode',
},
content: {
markdown: {
anchorLinks: false,
},
highlight: {
theme: {
default: 'github-light',
dark: 'github-dark',
light: 'github-light',
},
preload: ['diff', 'ts', 'js', 'css', 'bash', 'json'],
},
sources: {
github: {
prefix: '/notes',
driver: 'github',
repo: 'HugoRCD/notes',
branch: 'main',
dir: 'src',
token: process.env.NUXT_PRIVATE_GITHUB_TOKEN,
},
}
},
nitro: {
preset: process.env.NITRO_PRESET || 'bun',
prerender: {
crawlLinks: true,
routes: ['/', '/works', '/about', '/writing', '/sitemap.xml'],
},
},
sitemap: {
sources: ['/api/__sitemap__/urls'],
exclude: ['/notes/**'],
},
css: ['~/assets/style/main.css'],
devtools: { enabled: true },
image: {
screens: {
avatar: 80,
small: 160,
},
},
compatibilityDate: '2024-08-19',
})