From acb854c8276f76ba6e700ddce34d225b21c8b73c Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 21 Nov 2025 15:39:23 -0800 Subject: [PATCH] Fix: Exclude icon.png from slug capture --- functions/[slug].js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/[slug].js b/functions/[slug].js index 7cfdf64..0a6ffba 100644 --- a/functions/[slug].js +++ b/functions/[slug].js @@ -1,5 +1,5 @@ export async function onRequestGet({ request, params, env, next, waitUntil }) { - if (['abuse', 'admin', 'api', 'dash', 'acceptable-use', 'takedown'].includes(params.slug)) return next(); + if (['abuse', 'admin', 'api', 'dash', 'acceptable-use', 'takedown', 'icon.png'].includes(params.slug)) return next(); try { let dest = await env.KV_EV.get(params.slug); if (dest?.startsWith('🚫')) return Response.redirect(new URL('/takedown', request.url).href, 302); @@ -20,4 +20,3 @@ export async function onRequestGet({ request, params, env, next, waitUntil }) { return new Response(e.message, { status: 500 }); } } -