export default { async fetch(request) { const url = new URL(request.url); if (url.pathname === '/.well-known/mta-sts.txt') { const policy = `version: STSv1 mode: testing mx: *.mx.cloudflare.net max_age: 86400 return new Response(policy, { headers: { 'Content-Type': 'text/plain; charset=utf-8', 'Cache-Control': 'public, max-age=3600', }, }); } return new Response('Not Found', { status: 404 }); }, };