-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
93 lines (83 loc) · 1.75 KB
/
nuxt.config.ts
File metadata and controls
93 lines (83 loc) · 1.75 KB
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
export default defineNuxtConfig({
srcDir: '.',
app: {
pageTransition: { name: 'page', mode: 'out-in' },
},
modules: [
'@nuxtjs/robots',
'@nuxt/image',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@nuxt/content',
],
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/',
modifiers: {
format: 'webp',
quality: '80',
},
},
imgix: {
baseURL: 'https://images.unsplash.com/',
},
presets: {
blog: {
modifiers: {
format: 'webp',
fit: 'cover',
quality: '80',
},
},
},
domains: ['res.cloudinary.com', 'images.unsplash.com', 'dev-to-uploads.s3.amazonaws.com', 'raw.githubusercontent.com'],
format: ['webp'],
quality: 80,
screens: {
'xs': 320,
'sm': 640,
'md': 768,
'lg': 1024,
'xl': 1280,
'xxl': 1536,
'2xl': 1536,
},
},
content: {
preview: {
api: 'https://api.nuxt.studio',
},
highlight: {
theme: {
default: 'github-dark',
light: 'github-light',
dark: 'github-dark',
},
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'bash', 'markdown'],
lineNumbers: true,
},
},
build: {
transpile: ['lite-youtube'],
},
vue: {
compilerOptions: {
isCustomElement: tag => ['lite-youtube'].includes(tag),
},
},
compatibilityDate: '2025-03-13',
nitro: {
prerender: {
routes: ['/feed.xml'],
},
},
})