diff options
| author | Fuwn <[email protected]> | 2026-02-10 00:36:18 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-10 00:36:18 -0800 |
| commit | afa8814a8afbddab9e48c267e0e4f286751bf734 (patch) | |
| tree | 4bf877db24888d2487b2f8c77ffe2ca5b2e0681c /apps | |
| parent | refactor: use Supabase Auth display name instead of custom column (diff) | |
| download | asa.news-afa8814a8afbddab9e48c267e0e4f286751bf734.tar.xz asa.news-afa8814a8afbddab9e48c267e0e4f286751bf734.zip | |
fix: service worker cross-origin image handling and CI env vars
Stop SW from intercepting cross-origin image requests (favicons,
remote entry images) which caused no-response errors in production.
Add Supabase env vars to CI build step.
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/app/sw.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/app/sw.ts b/apps/web/app/sw.ts index f3bb4a8..c6dd082 100644 --- a/apps/web/app/sw.ts +++ b/apps/web/app/sw.ts @@ -45,7 +45,8 @@ const serwist = new Serwist({ }), }, { - matcher: ({ request }) => request.destination === "image", + matcher: ({ request, sameOrigin }) => + sameOrigin && request.destination === "image", handler: new CacheFirst({ cacheName: "entry-images", plugins: [ |