Fix: Exclude 'takedown' page from slug routing

This commit is contained in:
2025-11-21 11:18:28 -08:00
parent 5a6631aab6
commit 992f17ccd5

View File

@@ -1,5 +1,5 @@
export async function onRequestGet({ request, params, env, next, waitUntil }) { export async function onRequestGet({ request, params, env, next, waitUntil }) {
if (['abuse', 'admin', 'api', 'dash', 'acceptable-use'].includes(params.slug)) return next(); if (['abuse', 'admin', 'api', 'dash', 'acceptable-use', 'takedown'].includes(params.slug)) return next();
try { try {
let dest = await env.KV_EV.get(params.slug); let dest = await env.KV_EV.get(params.slug);
if (dest?.startsWith('✺')) { if (dest?.startsWith('✺')) {