-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
100 lines (100 loc) · 2.31 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
telemetry: false,
modules: [
'@vueuse/nuxt',
'@nuxtjs/google-fonts',
'@nuxtjs/tailwindcss',
'nuxt-svgo',
'shadcn-nuxt',
'@nuxt/image',
['unplugin-icons/nuxt', { autoInstall: true }],
'@pinia/nuxt',
'nuxt-security',
'@nuxtjs/i18n',
'@vee-validate/nuxt',
],
runtimeConfig: {
public: {
matomo: {
domain: process.env.NUXT_DOMAIN || '',
host: process.env.NUXT_MATOMO_HOST || '',
siteId: process.env.NUXT_MATOMO_SITEID || '',
},
},
admin: {
email: process.env.NUXT_ADMIN_EMAIL || '',
},
mailer: {
fromEmail: process.env.NUXT_MAILER_FROM_EMAIL || '',
fromName: process.env.NUXT_MAILER_FROM_NAME || '',
host: process.env.NUXT_MAILER_HOST || '',
port: process.env.NUXT_MAILER_PORT || '587',
username: process.env.NUXT_MAILER_USERNAME || '',
password: process.env.NUXT_MAILER_PASSWORD || '',
},
},
security: {
enabled: false, // process.env.NODE_ENV === 'production',
headers: {
referrerPolicy: 'strict-origin-when-cross-origin',
},
},
imports: {
dirs: ['./stores'],
},
image: {
format: ['webp'],
},
googleFonts: {
families: {
'Gochi Hand': true,
'Mr Dafoe': true,
},
},
tailwindcss: {
cssPath: '~/assets/css/main.css',
configPath: '~/tailwind.config.ts',
},
veeValidate: {
autoImports: false,
},
i18n: {
locales: [
{
code: 'de',
iso: 'de-DE',
name: 'Deutsch',
file: 'de-DE.json',
},
{
code: 'en',
iso: 'en-UK',
name: 'English',
file: 'en-UK.json',
},
],
lazy: true,
langDir: 'lang',
defaultLocale: 'de',
},
app: {
head: {
titleTemplate: '%s | Sven Stadhouders',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1',
},
{
name: 'cache-control',
content: 'no-cache, no-store, must-revalidate',
},
{ hid: 'robots', name: 'robots', content: 'index, follow' },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: 'favicon.png' }],
},
},
});