exportdefault { asyncfetch(request) { /** * A map of the URLs to redirect to * @param {Object} countryMap */ const countryMap = { CN: "https://my-bucket-1301588763.cos-website.ap-guangzhou.myqcloud.com/", OT: "https://blog.na4.top/", }; var max=36; var min=0; // Use the cf object to obtain the country of the request // more on the cf object: https://developers.cloudflare.com/workers/runtime-apis/request#incomingrequestcfproperties const country = request.cf.country; const pathname = 'img/' + Math.floor(Math.random()*(max-min+1)+min) + '.webp';