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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user