-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
101 lines (86 loc) · 1.9 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
ssr: true,
components: true,
// I think this is not used, since we don't use github actions
nitro: {
preset: 'github-pages', // Preset for GitHub Pages deployment
debug: true,
prerender: {
crawlLinks: true,
concurrency: 1,
},
},
router: {
options: {
scrollBehaviorType: 'smooth',
}
},
routeRules: {
'/': { prerender: true },
'/team': { prerender: true },
'/contacts': { prerender: true },
'/blog': { prerender: true },
},
modules: [
'@nuxt/content',
'@nuxt/icon',
'@nuxt/image',
'@nuxtjs/tailwindcss',
'@nuxt/content-theme-docs',
'@nuxtjs/color-mode',
],
content: {
highlight: {
theme: {
default: "one-dark-pro",
},
preload: ['c', 'bash', 'python']
},
markdown: {
// https://github.com/rehypejs/rehype-external-links
rehypePlugins: [
[
'rehype-external-links',
{
target: '_blank',
rel: 'noopener noreferer'
}
]
]
}
},
icon: {
customCollections: [
{
prefix: 'icons',
dir: 'public/icons',
},
],
clientBundle: {
scan: {
// note that when you specify those values, the default behavior will be overridden
globInclude: ['**icons/*.svg'],
},
includeCustomCollections: true,
},
},
css: [
"~/assets/css/style.css",
"~/assets/css/home.css"
],
app: {
head: {
title: 'Plum Juice',
meta: [
{ name: 'PlumJuice', content: 'Plum Juice - it\'s not just a Rapsberry Pi cluster' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
],
},
baseURL: process.env.BASE_URL || '/',
},
compatibilityDate: '2024-09-19',
})