From 64687ccce6398306f65faf834fe792c34e9e1648 Mon Sep 17 00:00:00 2001 From: mintrose Date: Tue, 26 May 2026 17:17:43 +0700 Subject: [PATCH 1/3] feat(pwa): add installable PWA shell with manifest and service worker Wire up vite-plugin-pwa to make apps/web installable on mobile devices via "Add to Home Screen". Adds a Workbox-generated service worker (NetworkFirst for API routes, CacheFirst for hashed assets) and a manifest with 192/512px icons derived from the production logo. Also adds .ts.net to Vite's allowedHosts so the production build can be tested over Tailscale Serve. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/index.html | 4 + apps/web/package.json | 1 + apps/web/public/icons/icon-192.png | Bin 0 -> 4403 bytes apps/web/public/icons/icon-512-maskable.png | Bin 0 -> 13851 bytes apps/web/public/icons/icon-512.png | Bin 0 -> 14671 bytes apps/web/public/manifest.webmanifest | 29 + apps/web/vite.config.ts | 36 + bun.lock | 1157 ++++++++++++++++++- 8 files changed, 1221 insertions(+), 6 deletions(-) create mode 100644 apps/web/public/icons/icon-192.png create mode 100644 apps/web/public/icons/icon-512-maskable.png create mode 100644 apps/web/public/icons/icon-512.png create mode 100644 apps/web/public/manifest.webmanifest diff --git a/apps/web/index.html b/apps/web/index.html index 88e1c8b4f23..8722ab2b742 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -11,6 +11,10 @@ + + + +