]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Add scope and start_url to PWA manifest v22.11.1
authorSean McGrath <sean@mcgrath.net.nz>
Mon, 7 Nov 2022 09:18:59 +0000 (22:18 +1300)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Tue, 8 Nov 2022 19:56:10 +0000 (20:56 +0100)
These URLs are relative, so given that manifest.json lives in assets/, these should point to the root of the site

vite.config.js

index f08041df61850076e72f62b5ff0ed8e34fdb9bb2..15ff457453ac9328dc1ee17eb5d949cd7264d81a 100644 (file)
@@ -21,6 +21,8 @@ export default defineConfig({
         short_name: "Homer",
         description: "Home Server Dashboard",
         theme_color: "#3367D6",
+        start_url: "../",
+        scope: "../",
         icons: [
           {
             src: "./icons/pwa-192x192.png",