From c4c09b8ddbc810af134d063622a72d89fdb58aed Mon Sep 17 00:00:00 2001 From: William Oldham Date: Sat, 9 Dec 2023 14:24:01 +0000 Subject: [PATCH] Remove PWA Orientation option and fix env for PWA enabledness --- vite.config.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 4fbb2776..f8934b21 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -39,7 +39,7 @@ export default defineConfig(({ mode }) => { } }), VitePWA({ - disable: process.env.VITE_PWA_ENABLED !== "yes", + disable: env.VITE_PWA_ENABLED !== "yes", registerType: "autoUpdate", workbox: { maximumFileSizeToCacheInBytes: 4000000, // 4mb @@ -57,7 +57,6 @@ export default defineConfig(({ mode }) => { theme_color: "#120f1d", background_color: "#120f1d", display: "standalone", - orientation: "portrait-primary", start_url: "/", icons: [ {