try to improve support for PWA on iOS

This commit is contained in:
Dobromir Popov
2024-05-07 16:52:21 +03:00
parent c6d376c64d
commit d727cebb55
3 changed files with 15 additions and 2 deletions

View File

@ -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"));