mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Remove PWA Orientation option and fix env for PWA enabledness
This commit is contained in:
parent
99de885216
commit
c4c09b8ddb
1 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,7 @@ export default defineConfig(({ mode }) => {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
disable: process.env.VITE_PWA_ENABLED !== "yes",
|
disable: env.VITE_PWA_ENABLED !== "yes",
|
||||||
registerType: "autoUpdate",
|
registerType: "autoUpdate",
|
||||||
workbox: {
|
workbox: {
|
||||||
maximumFileSizeToCacheInBytes: 4000000, // 4mb
|
maximumFileSizeToCacheInBytes: 4000000, // 4mb
|
||||||
|
@ -57,7 +57,6 @@ export default defineConfig(({ mode }) => {
|
||||||
theme_color: "#120f1d",
|
theme_color: "#120f1d",
|
||||||
background_color: "#120f1d",
|
background_color: "#120f1d",
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
orientation: "portrait-primary",
|
|
||||||
start_url: "/",
|
start_url: "/",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue