-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
nuxt.config.ts
135 lines (124 loc) · 2.76 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
export default defineNuxtConfig({
extends: ['@nuxt-themes/docus', 'nuxt-lego'],
modules: [
'@nuxtjs/color-mode',
'@vueuse/nuxt',
'@nuxt/image-edge',
'nuxt-windicss',
// custom content modules, need to come before the content module
'~/app/module',
'~/modules/unplugin-icons',
'@nuxt/content',
'@nuxtseo/module',
'nuxt-link-checker',
'nuxt-simple-sitemap',
],
site: {
name: 'Harlan Wilton',
logo: '/harlan-wilton.jpeg',
url: 'https://harlanzw.com/',
description: 'Open source developer, contributing to the Vue, Nuxt, and Vite ecosystems.',
defaultLocale: 'en-AU',
},
experimental: {
headNext: true,
},
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
linkChecker: {
enabled: false,
excludeLinks: [
'https://twitter.com/harlan_zw',
],
},
css: [
'@/resources/scrollbars.css',
'@/resources/main.scss',
],
// https://color-mode.nuxtjs.org
colorMode: {
fallback: 'dark',
classSuffix: '',
},
pinceau: {
configFileName: 'tokens.config',
studio: false,
debug: true,
followSymbolicLinks: false,
},
app: {
head: {
title: 'Harlan Wilton',
templateParams: {
separator: '·',
},
// fathom analytics
script: [
{
'src': 'https://idea-lets-dance.harlanzw.com/script.js',
'data-spa': 'auto',
'data-site': 'VDJUVDNA',
'defer': true,
},
],
link: [
{ rel: 'preconnect', href: 'https://res.cloudinary.com' },
],
},
},
// https://content.nuxtjs.org
content: {
documentDriven: {
injectPage: false,
},
highlight: {
// See the available themes on https://github.com/shikijs/shiki/blob/main/docs/themes.md#all-theme
theme: 'dracula',
},
},
image: {
cloudinary: {
baseURL: 'https://res.cloudinary.com/dl6o1xpyq/image/upload/images',
modifiers: {
quality: 'auto:best',
dpr: 'auto',
},
},
domains: [
'avatars0.githubusercontent.com',
],
},
studio: {
enabled: false,
},
nitro: {
prerender: {
failOnError: false,
crawlLinks: true,
routes: [
'/',
'/feed.xml',
'/feed.json',
'/feed.atom',
],
},
},
hooks: {
// Related to https://github.com/nuxt/nuxt/pull/22558
// Adding all global components to the main entry
// To avoid lagging during page navigation on client-side
// Downside: bigger JS bundle
// With sync: 465KB, gzip: 204KB
// Without: 418KB, gzip: 184KB
'components:extend': function (components) {
for (const comp of components) {
if (comp.global)
comp.global = 'sync'
}
},
},
})