Move mx logic to top level functions middleware
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user