-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnuxt.config.ts
71 lines (71 loc) · 1.54 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
modules: [
"@nuxt/ui",
"@nuxt/eslint",
"@vueuse/nuxt",
"@nuxthub/core",
"nuxt-auth-utils",
"@vite-pwa/nuxt",
],
css: ["~/assets/css/main.css"],
icon: {
serverBundle: "remote",
localApiEndpoint: "/_nuxt_icon/:collection",
},
runtimeConfig: {
AUTH_USERNAME: "",
AUTH_PASSWORD: "",
DB_ENCRYPTION_PASSWORD: "",
},
future: {
compatibilityVersion: 4,
},
hub: {
database: true,
kv: true,
},
auth: {
webAuthn: true,
},
pwa: {
includeAssets: ["favicon.ico", "favicon-16x16.png"],
manifest: {
name: "MyAuthenticator",
short_name: "MyAuthenticator",
theme_color: "#0f172b",
orientation: "natural",
display: "standalone",
background_color: "#0f172b",
start_url: "/",
lang: "en",
icons: [
{
src: "pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
],
},
workbox: {
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
},
injectManifest: {
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
},
client: {
installPrompt: true,
},
devOptions: {
enabled: true,
suppressWarnings: true,
navigateFallback: "/",
navigateFallbackAllowlist: [/^\/$/],
type: "module",
},
},
compatibilityDate: "2025-03-15",
});