Move mx logic to top level functions middleware
Some checks failed
Test, Build, Deploy / Test, Build, and Deploy (push) Failing after 54s
Test, Build, Deploy / Create Sentry Release (push) Has been skipped

This commit is contained in:
2026-04-11 02:26:31 -04:00
parent c92f4d31f2
commit 02f0a299e0
2 changed files with 25 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ export async function loader({
}: {
context: RequestContext;
}): Promise<{ [k: string]: any }> {
if (await context.env.DATA.get("mx"))
if (context.data.mx)
throw new Response(null, {
status: 503,
});