This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.config.ts
96 lines (86 loc) · 2.48 KB
/
app.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
import { defineConfig } from "@solidjs/start/config";
import icons from "unplugin-icons/vite";
import unocss from "unocss/vite";
import { VitePWA as pwa } from "vite-plugin-pwa";
export default defineConfig({
ssr: false,
server: {
preset: "vercel"
},
vite: {
server: {
fs: {
allow: ["../.."]
}
},
define: {
__APP_COMMIT_SHA__: JSON.stringify(process.env.VERCEL_GIT_COMMIT_SHA || "dev")
},
plugins: [
unocss(),
icons({ compiler: "solid" }),
pwa({
base: "/",
registerType: "prompt",
injectRegister: null,
workbox: {
sourcemap: true,
cleanupOutdatedCaches: true,
globPatterns: [
"**/*.{js,css,html,svg,png,woff,woff2}"
],
navigateFallbackDenylist: [
/^\/api.*/
],
additionalManifestEntries: [
{ url: "favicon.ico", revision: null },
{ url: "index.html", revision: "REV_INDEX_HTML_TO_CHANGE" }
]
},
manifest: {
name: "Signatures - IUT de Limoges",
short_name: "Signatures - IUT",
description: "Une PWA simple et fonctionnelle hors-ligne à utiliser pour visualiser ses notes n'importe quand de façon instantané.",
categories: [
"productivity"
],
icons: [
{
src: "/icons/default.png",
sizes: "512x512",
type: "image/png"
},
{
src: "/icons/default.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable"
}
],
// TODO: Add screenshots when the UI is more polished
// screenshots: [
// {
// src: "/screenshots/WIDE_HOME.webp",
// type: "image/webp",
// sizes: "1280x720",
// form_factor: "wide",
// label: "Visualisation des notes sur ordinateur"
// },
// {
// src: "/screenshots/NARROW_HOME.webp",
// type: "image/webp",
// sizes: "828x1792",
// form_factor: "narrow",
// label: "Visualisation des notes sur mobile"
// }
// ],
start_url: "/",
theme_color: "#FFFFFF",
background_color: "#FFFFFF",
display: "standalone",
orientation: "portrait"
}
})
]
}
});