From 10c15949c5c1fd5aa3f781782cdd7d91c5699cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Korde=C5=BE?= Date: Wed, 17 May 2023 23:08:56 +0200 Subject: [PATCH] Try fix PWA --- .gitignore | 2 +- next.config.js | 1 + public/manifest.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ac994c1..6ad9c2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # PWA -/public/sw.js* +/public/service-worker.js* /public/workbox-*.js* # dependencies diff --git a/next.config.js b/next.config.js index c822387..06c9336 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,6 @@ const withPwa = require('next-pwa')({ dest: 'public', + sw: 'service-worker.js', }); /** @type {import('next').NextConfig} */ diff --git a/public/manifest.json b/public/manifest.json index 990678b..5209523 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -3,6 +3,7 @@ "short_name": "S5 Vaja", "description": "Priprava na radioamaterski izpit", "start_url": "/priprave", + "scope": "/", "display": "standalone", "background_color": "#2196f3", "theme_color": "#2196f3",