-
Notifications
You must be signed in to change notification settings - Fork 41
/
nuxt.config.ts
59 lines (56 loc) · 1.08 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
export default defineNuxtConfig({
app: {
pageTransition: { name: 'page', mode: 'out-in' },
},
modules: [
'@nuxt/image-edge',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@nuxt/content',
'@nuxtjs/robots',
],
colorMode: {
classSuffix: '',
preference: 'system', // default value of $colorMode.preference
fallback: 'dark',
},
css: [
'~/assets/css/main.css',
'~/node_modules/lite-youtube-embed/src/lite-yt-embed.css',
],
image: {
cloudinary: {
baseURL: 'https://res.cloudinary.com/debsobrien/image/upload/',
},
imgix: {
baseURL: 'https://images.unsplash.com/',
},
presets: {
blog: {
modifiers: {
format: 'webp',
fit: 'cover',
quality: '80',
},
},
},
},
content: {
highlight: {
theme: 'github-dark'
},
},
nitro: {
prerender: {
routes: ['/sitemap.xml']
}
},
build: {
transpile: ['lite-youtube'],
},
vue: {
compilerOptions: {
isCustomElement: tag => ['lite-youtube'].includes(tag),
},
},
})