-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpwa.config.mjs
49 lines (46 loc) · 1.16 KB
/
pwa.config.mjs
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
import { readFile } from "node:fs/promises";
const { version } = JSON.parse(await readFile("./package.json", "utf8"));
/* eslint-disable camelcase */
const config = {
key: "blibla",
version,
path: "/pwa/",
appName: "Blibla",
appShortName: "Blibla",
appTitle: "Blibla",
appDescription: "Blibla template with Next.js",
developerName: "Gregor Adams",
developerURL: "https://github.com/pixelass",
dir: "auto",
lang: "en",
background: "#000000",
theme_color: "#20827c",
appleStatusBarStyle: "black",
display: "standalone",
orientation: "portrait",
scope: "/",
start_url: "/?homescreen=1",
pixel_art: false,
loadManifestWithCredentials: false,
manifestMaskable: true,
preferRelatedApplications: true,
relatedApplications: undefined,
icons: {
// Platform Options:
// - offset - offset in percentage
// - background:
// * false - use default
// * true - force use default, e.g. set background for Android icons
// * color - set background for the specified icons
//
android: true,
appleIcon: true,
appleStartup: true,
favicons: true,
windows: true,
yandex: false,
},
shortcuts: [],
};
/* eslint-enable camelcase */
export default config;