From fce03e44f3219fe004d26f3b22291d92e45dc85b Mon Sep 17 00:00:00 2001 From: DEls Date: Sun, 30 Aug 2026 08:57:45 +0200 Subject: [PATCH] feat(pwa): add a separate web manifest scoped to the chat The dashboard's manifest is generated by next-pwa from next.config.js. A second static manifest in public/, linked from the chat page, installs as its own app called Ask. The explicit id field stops the two manifests on the same origin from being treated as updates to one another. Co-Authored-By: Claude Opus 5 --- public/chat.webmanifest | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 public/chat.webmanifest diff --git a/public/chat.webmanifest b/public/chat.webmanifest new file mode 100644 index 0000000..0cdef1a --- /dev/null +++ b/public/chat.webmanifest @@ -0,0 +1,32 @@ +{ + "name": "MEGA Ask", + "short_name": "Ask", + "description": "Ask questions about MEGA INFRASTRUCTURE site, fleet and purchasing data.", + "theme_color": "#fdb13c", + "background_color": "#e8ebed", + "display": "standalone", + "orientation": "portrait", + "scope": "/dashboard/chat", + "start_url": "/dashboard/chat", + "id": "/dashboard/chat", + "icons": [ + { + "src": "/icons/icon-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/icon-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/icons/maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +}