-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
53 lines (52 loc) · 1.33 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
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
ssr: true,
app: {
// https://nuxt.com/docs/api/configuration/nuxt-config#head
head: {
script: [
// https://werner.goatcounter.com/
{
'data-goatcounter': 'https://werner.goatcounter.com/count',
async: true,
src: '//gc.zgo.at/count.js'
}
]
},
cdnURL: 'https://www.werner.best/'
},
generate: {
routes: ['/api/obfuscated']
},
nitro: {
prerender: {
routes: ['/404.html'] // Hacky way of rendering a static 404 error from the [slug].vue
}
},
modules: [
'@nuxt/content',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@vueuse/nuxt'
// TODO: Update after workaround fixed 'floating-vue/nuxt'
// TODO: Consider adding store: '@pinia/nuxt',
// TODO: Consider privacy oriented analytics tools, i.e. Plausible ('vue-plausible') or Umami
],
css: [
'@/assets/css/main.css'
// https://color-mode.nuxtjs.org
],
colorMode: {
classSuffix: ''
},
// https://content.nuxtjs.org
content: {
navigation: {
fields: ['navTitle', 'navigation']
},
highlight: {
// See the available themes on https://github.com/shikijs/shiki/blob/main/docs/themes.md#all-theme
theme: 'dracula'
}
}
})