From 390133fb983e6348438a1422ce58829509319eab Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 21 Nov 2025 15:45:35 -0800 Subject: [PATCH] Fix: Exclude 'public' from slug capture --- functions/[slug].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/[slug].js b/functions/[slug].js index 0a6ffba..7b0c2c7 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', 'icon.png'].includes(params.slug)) return next(); + if (['abuse', 'admin', 'api', 'dash', 'acceptable-use', 'takedown', 'public'].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);