diff --git a/pages/_document.tsx b/pages/_document.tsx index cdb83b8..8f7ff1a 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -14,8 +14,7 @@ class MyDocument extends Document { - - +
diff --git a/public/manifest.json b/public/manifest.json index 896de3b..2e4fc27 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -2,6 +2,16 @@ "theme_color": "#ffffff", "background_color": "#e36600", "icons": [ + { + "src": "pwa-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "pwa-512x512.png", + "sizes": "512x512", + "type": "image/png" + }, { "purpose": "maskable", "sizes": "512x512", diff --git a/server.js b/server.js index cc9e209..601079c 100644 --- a/server.js +++ b/server.js @@ -124,6 +124,10 @@ nextApp next(); }); server.use("/favicon.ico", express.static("public/favicon.png")); + // serve the same image for pwa-192x192.png and pwa-512x512.png + server.use("/pwa-192x192.png", express.static("public/favicon.png")); + server.use("/pwa-512x512.png", express.static("public/favicon.png")); + server.use("/manifest.json", express.static("public/manifest.json")); //all static files are served from the public folder, including subfolders server.use(express.static("public")); //ToDo: not working for some reason // server.use("/robots.txt", express.static("styles/favicon_io/robots.txt"));