-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
111 lines (95 loc) · 1.97 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
},
},
future: {
compatibilityVersion: 4,
},
css: ['@/assets/css/main.postcss'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
typescript: {
strict: true,
typeCheck: true,
},
modules: [
'@nuxt/fonts',
'@nuxtjs/color-mode',
'@nuxt/eslint',
'@nuxt/image',
'@nuxt/icon',
'nuxt-security',
'@nuxtjs/seo',
'@nuxt/ui',
],
devtools: {
enabled: true,
},
nitro: {
prerender: {
autoSubfolderIndex: false,
},
},
icon: {
serverBundle: {
collections: ['heroicons', 'lucide'],
},
},
eslint: {
config: {
stylistic: true,
},
},
experimental: {
componentIslands: true,
typedPages: true,
viewTransition: true,
},
router: {
options: {
scrollBehaviorType: 'smooth',
},
},
security: {
nonce: true,
headers: {
contentSecurityPolicy: {
'style-src': process.env.NODE_ENV === 'development'
? ['\'self\'', '\'unsafe-inline\'']
: ['\'self\'', '\'unsafe-inline\'', 'nonce-{{nonce}}'],
'script-src': process.env.NODE_ENV === 'development'
? ['\'self\'', '\'unsafe-inline\'']
: ['\'self\'', '\'unsafe-inline\'', 'nonce-{{nonce}}'],
},
},
},
colorMode: {
preference: 'light',
fallback: 'light',
classSuffix: '',
},
fonts: {
defaults: {
weights: [300, 301, 400, 401, 500, 501, 700, 701, 900],
styles: ['normal', 'italic'],
},
},
site: {
url: 'https://www.xavhm.foo',
name: 'Xav_ | Frontend Development',
description: 'Xav_ | Frontend Development',
defaultLocale: 'en', // not needed if you have @nuxtjs/i18n installed
},
ogImage: {
enabled: false,
},
compatibilityDate: '2024-07-21',
})