Enhance PWA support with new install prompt and configuration updates

- Added PWAInstallPrompt component to facilitate app installation beyond the "Add to Home Screen" option.
- Updated vite.config.ts to include display_override and id properties for improved PWA manifest.
- Modified nginx configuration to ensure proper serving of the manifest with application/manifest+json type for better installability on Android.
This commit is contained in:
Dorian
2026-02-18 13:48:45 +00:00
parent aa08160556
commit 129d7fe6f4
4 changed files with 100 additions and 4 deletions

View File

@@ -1,8 +1,7 @@
# PWA installability - required for Add to Home Screen on Android
# Include this inside the HTTPS server block for archipelago
# Manifest must have Content-Type: application/manifest+json
# PWA installability - required for Install (not just Add to Home Screen) on Android
# Manifest MUST be served with application/manifest+json - Chrome rejects otherwise
location = /manifest.webmanifest {
add_header Content-Type application/manifest+json;
default_type application/manifest+json;
add_header Cache-Control "public, max-age=0, must-revalidate";
}
# Service worker - no cache so updates apply