-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
83 lines (77 loc) · 1.98 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: "SnapHold - 12urenloop"
},
},
// nitro: {
// externals: {
// traceInclude: ["node_modules/@prisma/client"]
// },
// },
runtimeConfig: {
authRedirectUri: process.env.AUTH_REDIRECT_URI,
googleClientId: process.env.GOOGLE_CLIENT_ID,
googleClientSecret: process.env.GOOGLE_CLIENT_SECRET,
microsoftClientId: process.env.MICROSOFT_CLIENT_ID,
microsoftClientSecret: process.env.MICROSOFT_CLIENT_SECRET,
microsoftTenantId: process.env.MICROSOFT_TENANT_ID,
minioAccessKey: process.env.MINIO_ACCESS_KEY,
minioSecretKey: process.env.MINIO_SECRET_KEY,
minioBucket: process.env.MINIO_BUCKET,
},
devtools: { enabled: true },
modules: ['@vite-pwa/nuxt', "@nuxt/ui", "dayjs-nuxt", "@nuxt/image"],
dayjs: {
plugins: ['utc', 'timezone', 'relativeTime'],
},
image: {
domains: ["minioserver.lecoutere.dev"]
},
pwa: {
strategies: 'generateSW',
registerType: 'autoUpdate',
manifest: {
name: 'SnapHold',
short_name: 'SnapHold',
theme_color: '#ffffff',
display: "standalone",
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable',
},
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
},
injectManifest: {
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
},
client: {
installPrompt: true,
},
devOptions: {
enabled: true,
suppressWarnings: true,
navigateFallback: '/',
navigateFallbackAllowlist: [/^\/$/],
type: 'module',
},
},
compatibilityDate: '2024-07-06',
})