summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-10 00:36:18 -0800
committerFuwn <[email protected]>2026-02-10 00:36:18 -0800
commitafa8814a8afbddab9e48c267e0e4f286751bf734 (patch)
tree4bf877db24888d2487b2f8c77ffe2ca5b2e0681c /apps
parentrefactor: use Supabase Auth display name instead of custom column (diff)
downloadasa.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.ts3
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: [