-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnuxt.config.ts
90 lines (80 loc) · 1.89 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
// https://v3.nuxtjs.org/api/configuration/nuxt.config
import { MeiliSearch } from 'meilisearch'
// import movies from './small_movies.json'
const imageScaleFactor = 2
export default defineNuxtConfig({
modules: [
'@nuxt/content',
'@nuxtjs/google-fonts',
'@nuxt/image-edge',
],
experimental: {
componentIslands: true
},
routeRules: {
'/admin/**': { ssr: false },
'/kontrollzentrum': { ssr: false },
'/neuespasswort': { ssr: false },
'/neuespasswort/**': { ssr: false },
},
runtimeConfig: {
// Private keys are only available on the server
JWTSecret: '', // NUXT_JWT_SECRET
MariaDBHost: '',
MariaDBDefaultDatabase: '',
MariaDBUser: '',
MariaDBPassword: '',
MariaDBPort: '3306',
meiliAdminKey: '', // NUXT_MEILI_ADMIN_KEY
meiliIndexUID: 'articles', // NUXT_MEILI_INDEX_UID
meiliURL: '', // NUXT_MEILI_URL
meiliSearchKey: '' // NUXT_MEILI_SEARCH_KEY
// Public keys that are exposed to the client
// public: {}
},
content: {
defaultLocale: 'de'
},
image: {
presets: {
footer: {
modifiers: {
format: 'jpg',
quality: 60,
width: 50 * imageScaleFactor,
height: 50 * imageScaleFactor
}
},
card: {
modifiers: {
format: 'jpg',
quality: 60,
width: 340 * imageScaleFactor,
height: 160 * imageScaleFactor
}
},
slide: {
modifiers: {
format: 'jpg',
quality: 60,
width: 1080 * imageScaleFactor,
height: 300 * imageScaleFactor
}
},
article: {
modifiers: {
format: 'jpg',
quality: 60,
width: 1080 * imageScaleFactor
}
}
}
},
googleFonts: {
download: true,
families: {
Montserrat: [400, 600, 700],
'Nunito Sans': [300, 400, 700]
}
}
})