-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnuxt.config.ts
113 lines (103 loc) · 2.8 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
112
113
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: {
enabled: true,
timeline: {
enabled: true
}
},
typescript: {
shim: false,
typeCheck: true
},
ssr: false,
runtimeConfig: {
redis: { // Default values
host: process.env.REDIS_HOST,
port: 6379
/* other redis connector options */
}
},
modules: [
'@vite-pwa/nuxt',
'nuxt-svgo',
'dayjs-nuxt',
'@nuxt/ui',
'@pinia/nuxt',
'@vueuse/nuxt',
['@nuxtjs/google-fonts', {
families: {
Roboto: true,
'Nunito Sans': true
}
}],
'@nuxt/content',
'@nuxt/image'
],
pinia: {
storesDirs: ['./stores/**']
},
colorMode: {
preference: 'dark'
},
svgo: {
autoImportPath: false,
explicitImportsOnly: true
},
pwa: {
registerType: 'autoUpdate',
manifest: {
id: '/',
name: 'AM32 configurator',
short_name: 'AM32CONF',
theme_color: '#000000',
description: 'Configurator for the ESC firmware AM32',
icons: [
{
src: 'assets/images/am32-logo.svg',
sizes: '288x288',
type: 'image/svg'
},
{
src: 'assets/images/am32-logo.svg',
sizes: '144x144',
type: 'image/svg',
purpose: 'any'
}
],
screenshots: [
{
src: 'assets/images/screenshot1.png',
sizes: '1742x918',
type: 'image/png',
form_factor: 'wide',
label: '4in1 ESC'
},
{
src: 'assets/images/screenshot1.png',
sizes: '1742x918',
type: 'image/png',
form_factor: 'narrow',
label: '4in1 ESC'
}
]
},
workbox: {
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
navigateFallback: '/'
},
client: {
installPrompt: true,
// you don't need to include this: only for testing purposes
// if enabling periodic sync for update use 1 hour or so (periodicSyncForUpdates: 3600)
periodicSyncForUpdates: 3600
},
devOptions: {
enabled: true,
suppressWarnings: true,
navigateFallbackAllowlist: [/^\/$/],
type: 'module'
}
},
compatibilityDate: '2024-09-16'
});